3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new StdClass(); $b = $a; var_dump(is_ref($a, $b)); function is_ref(&$a, &$b) { // create a unique different value $differentValue = ($a === true) ? false : true; // We need a copy of $a, to keep safe. Note that if $a is a "referenced" value, $copy will be too. $copy = $a; // Change $a and check if $b changed too, finally restore $a using $copy. $a = $differentValue; $same = $a === $b; $a = $copy; return $same; }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0110.00316.50
8.3.50.0140.00522.79
8.3.40.0040.01118.82
8.3.30.0080.00818.84
8.3.20.0040.00420.18
8.3.10.0000.00821.95
8.3.00.0040.00417.38
8.2.180.0120.00618.13
8.2.170.0150.00022.96
8.2.160.0110.00320.33
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00020.95
8.2.110.0060.00322.25
8.2.100.0080.00419.15
8.2.90.0050.00319.09
8.2.80.0060.00317.97
8.2.70.0030.00617.25
8.2.60.0000.00917.80
8.2.50.0060.00318.07
8.2.40.0050.00318.03
8.2.30.0000.00717.99
8.2.20.0040.00417.65
8.2.10.0040.00418.04
8.2.00.0050.00317.66
8.1.280.0070.00725.92
8.1.270.0040.00423.79
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.92
8.1.230.0080.00319.11
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0000.00917.35
8.1.190.0070.00017.23
8.1.180.0050.00318.10
8.1.170.0070.00418.30
8.1.160.0040.00421.95
8.1.150.0050.00218.90
8.1.140.0030.00517.44
8.1.130.0000.00817.74
8.1.120.0050.00317.41
8.1.110.0000.00717.29
8.1.100.0030.00517.37
8.1.90.0070.00017.29
8.1.80.0030.00317.36
8.1.70.0000.00717.33
8.1.60.0060.00317.59
8.1.50.0040.00417.42
8.1.40.0040.00417.54
8.1.30.0060.00317.57
8.1.20.0030.00517.64
8.1.10.0040.00417.58
8.1.00.0070.00317.39
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0070.00018.27
8.0.270.0080.00017.06
8.0.260.0030.00317.09
8.0.250.0000.00716.84
8.0.240.0030.00316.78
8.0.230.0030.00616.86
8.0.220.0070.00016.82
8.0.210.0070.00016.80
8.0.200.0030.00316.77
8.0.190.0000.00716.92
8.0.180.0000.00716.86
8.0.170.0000.00716.77
8.0.160.0040.00416.80
8.0.150.0000.01016.71
8.0.140.0000.01116.80
8.0.130.0030.00313.23
8.0.120.0070.00016.66
8.0.110.0040.00416.73
8.0.100.0000.00716.71
8.0.90.0030.00316.66
8.0.80.0100.00716.79
8.0.70.0040.00416.67
8.0.60.0040.00416.66
8.0.50.0070.00016.88
8.0.30.0090.01317.22
8.0.20.0110.00717.40
8.0.10.0000.00816.86
8.0.00.0070.01116.45
7.4.330.0050.00015.07
7.4.320.0030.00316.59
7.4.300.0000.00616.54
7.4.290.0000.00716.50
7.4.280.0040.00416.48
7.4.270.0080.00016.60
7.4.260.0080.00316.62
7.4.250.0040.00416.47
7.4.240.0020.00516.55
7.4.230.0000.00716.57
7.4.220.0190.00316.61
7.4.210.0040.01016.50
7.4.200.0070.00016.61
7.4.160.0070.00716.37
7.4.150.0120.00617.40
7.4.140.0140.00317.86
7.4.130.0110.00816.60
7.4.120.0170.00216.52
7.4.110.0030.01616.47
7.4.100.0120.00916.26
7.4.90.0100.00716.33
7.4.80.0140.00419.39
7.4.70.0120.00816.41
7.4.60.0140.00316.40
7.4.50.0000.00916.57
7.4.40.0030.01316.72
7.4.30.0120.00316.56
7.4.10.0090.00915.20
7.4.00.0070.00814.95
7.3.330.0020.00213.16
7.3.320.0000.00513.36
7.3.310.0000.00616.15
7.3.300.0000.00816.23
7.3.290.0090.00916.30
7.3.280.0100.00816.32
7.3.270.0000.01717.40
7.3.260.0070.01016.70
7.3.250.0100.00716.31
7.3.240.0070.01016.61
7.3.230.0130.00816.39
7.3.210.0140.00316.66
7.3.200.0110.00619.39
7.3.190.0150.00716.14
7.3.180.0070.01316.34
7.3.170.0110.01116.27
7.3.160.0150.00016.43
7.3.130.0030.01414.61
7.3.120.0110.00814.77
7.3.110.0090.00814.92
7.3.100.0050.01014.79
7.3.90.0050.01114.96
7.3.80.0080.00614.91
7.3.70.0070.00914.50
7.3.60.0080.00614.68
7.3.50.0080.00514.85
7.3.40.0060.00914.72
7.3.30.0090.00514.67
7.3.20.0090.00516.70
7.3.10.0080.01016.66
7.3.00.0080.01016.67
7.2.330.0030.01316.56
7.2.320.0110.00616.64
7.2.310.0120.00416.42
7.2.300.0030.02116.37
7.2.290.0090.00616.36
7.2.260.0100.01014.89
7.2.250.0080.00715.09
7.2.240.0090.00614.92
7.2.230.0080.00814.93
7.2.220.0080.00614.82
7.2.210.0060.00814.93
7.2.200.0080.00615.02
7.2.190.0060.00414.95
7.2.180.0030.01014.97
7.2.170.0070.00914.79
7.2.160.0060.00915.02
7.2.150.0090.00616.84
7.2.140.0070.01116.87
7.2.130.0070.00316.86
7.2.120.0130.00316.94
7.2.110.0070.01016.83
7.2.100.0040.00716.76
7.2.90.0030.01416.97
7.2.80.0040.01516.93
7.2.70.0060.00316.66
7.2.60.0110.00716.92
7.2.50.0090.00616.60
7.2.40.0070.01016.90
7.2.30.0030.00716.93
7.2.20.0030.01316.79
7.2.10.0080.00316.98
7.2.00.0030.00616.64
7.1.330.0080.01015.96
7.1.320.0030.01115.74
7.1.310.0090.00515.75
7.1.300.0120.00515.81
7.1.290.0000.01315.74
7.1.280.0080.00815.75
7.1.270.0040.00615.83
7.1.260.0010.00815.62
7.1.250.0000.00815.89
7.1.240.0030.00915.96
7.1.230.0030.00715.80
7.1.220.0000.01015.43
7.1.210.0090.00415.95
7.1.200.0070.00615.84
7.1.190.0090.00615.85
7.1.180.0090.00316.01
7.1.170.0040.01115.75
7.1.160.0000.01315.80
7.1.150.0030.00615.95
7.1.140.0130.00315.88
7.1.130.0040.01115.82
7.1.120.0000.01415.96
7.1.110.0040.00815.77
7.1.100.0070.00416.81
7.1.90.0070.00715.98
7.1.80.0030.00715.84
7.1.70.0050.00716.49
7.1.60.0070.01017.65
7.1.50.0030.01216.29
7.1.40.0040.00415.84
7.1.30.0070.00315.64
7.1.20.0030.00615.90
7.1.10.0040.01115.62
7.1.00.0040.04218.96
7.0.330.0000.00815.13
7.0.320.0040.01115.09
7.0.310.0030.01015.11
7.0.300.0030.00915.42
7.0.290.0110.00315.31
7.0.280.0070.00315.35
7.0.270.0070.00715.43
7.0.260.0060.00915.14
7.0.250.0030.00915.41
7.0.240.0000.01215.40
7.0.230.0040.00715.43
7.0.220.0040.00515.53
7.0.210.0060.00615.52
7.0.200.0030.01015.85
7.0.190.0070.00315.47
7.0.180.0060.00615.36
7.0.170.0030.01015.52
7.0.160.0030.01015.43
7.0.150.0060.00815.38
7.0.140.0040.03718.77
7.0.130.0060.00615.27
7.0.120.0110.00415.49
7.0.110.0000.00815.27
7.0.100.0000.00815.05
7.0.90.0060.00615.12
7.0.80.0000.01315.42
7.0.70.0070.00715.59
7.0.60.0110.03817.73
7.0.50.0050.04816.58
7.0.40.0040.04916.79
7.0.30.0150.03316.62
7.0.20.0160.04016.67
7.0.10.0070.03116.71
7.0.00.0080.02316.89
5.6.400.0080.00614.14
5.6.390.0040.01114.25
5.6.380.0150.00014.33
5.6.370.0030.01014.23
5.6.360.0070.01014.64
5.6.350.0090.00014.11
5.6.340.0070.00714.25
5.6.330.0060.00314.34
5.6.320.0030.00614.52
5.6.310.0100.00613.98
5.6.300.0000.01514.56
5.6.290.0000.01514.39
5.6.280.0000.04517.60
5.6.270.0060.00314.30
5.6.260.0000.01214.43
5.6.250.0070.00414.08
5.6.240.0100.00014.25
5.6.230.0000.01414.22
5.6.220.0030.01414.65
5.6.210.0070.04617.59
5.6.200.0160.01516.16
5.6.190.0050.03517.49
5.6.180.1900.02617.46
5.6.170.0100.04617.41
5.6.160.0080.04517.30
5.6.150.0030.04616.34
5.6.140.0070.04516.25
5.6.130.0060.02316.32
5.6.120.0040.03217.57
5.6.110.0070.02217.64
5.6.100.0120.04217.66
5.6.90.0030.04717.65
5.6.80.0100.04017.37
5.6.70.2080.02217.43
5.6.60.0000.01414.26
5.6.50.0070.00714.21
5.6.40.0000.01414.26
5.6.30.0060.00614.15
5.6.20.0060.00314.49
5.6.10.0100.00014.48
5.6.00.0080.00514.26
5.5.380.0030.01014.01
5.5.370.0060.00314.21
5.5.360.0000.01414.29
5.5.350.0210.03517.31
5.5.340.0030.04516.09
5.5.330.0050.02717.24
5.5.320.2080.02517.22
5.5.310.0200.03617.42
5.5.300.0000.05016.13
5.5.290.0050.03416.21
5.5.280.0020.04717.66
5.5.270.0120.04017.40
5.5.260.0080.04317.49
5.5.250.0060.03217.39
5.5.240.0150.04217.19
5.5.230.0070.00714.20
5.5.220.0000.01614.19
5.5.210.0070.00413.91
5.5.200.0060.00914.43
5.5.190.0000.01314.38
5.5.180.0080.00414.46
5.5.170.0000.01314.05
5.5.160.0070.01014.35
5.5.150.0100.00714.45
5.5.140.0040.00913.80
5.5.130.0060.00914.27
5.5.120.0030.01413.73
5.5.110.0000.01014.26
5.5.100.0100.00614.32
5.5.90.0060.00614.13
5.5.80.0040.01213.77
5.5.70.0030.00914.38
5.5.60.0120.00314.28
5.5.50.0040.00414.31
5.5.40.0110.00013.95
5.5.30.0060.00914.09
5.5.20.0040.01114.34
5.5.10.0030.01013.86
5.5.00.0070.00714.20
5.4.450.0190.02015.29
5.4.440.0280.02215.23
5.4.430.0230.02315.06
5.4.420.0130.02615.01
5.4.410.0070.02315.16
5.4.400.0220.02315.08
5.4.390.0250.03015.00
5.4.380.0120.02714.86
5.4.370.0070.03014.80
5.4.360.0100.02714.98
5.4.350.0100.02814.69
5.4.340.0030.03514.70
5.4.330.0000.00710.95
5.4.320.0070.01911.77
5.4.310.0090.02111.67
5.4.300.0050.02311.84
5.4.290.0030.02711.53
5.4.280.0080.01911.52
5.4.270.0040.02511.63
5.4.260.0070.02011.64
5.4.250.0060.01911.74
5.4.240.0040.02111.52
5.4.230.0060.02311.61
5.4.220.0050.02211.70
5.4.210.0050.02411.70
5.4.200.0040.02111.59
5.4.190.0040.02311.63
5.4.180.0030.02111.66
5.4.170.0040.02311.51
5.4.160.0030.02411.60
5.4.150.0070.02011.50
5.4.140.0070.02211.42
5.4.130.0040.02311.39
5.4.120.0060.02011.41
5.4.110.0060.01911.50
5.4.100.0040.02311.49
5.4.90.0070.02011.50
5.4.80.0050.02111.46
5.4.70.0090.02211.50
5.4.60.0050.02311.31
5.4.50.0040.02511.33
5.4.40.0040.02311.34
5.4.30.0070.02411.54
5.4.20.0060.02111.47
5.4.10.0040.02111.33
5.4.00.0050.02011.18
5.3.290.0080.04112.80
5.3.280.0060.03812.71
5.3.270.0100.03612.73
5.3.260.0090.04212.72
5.3.250.0060.04412.72
5.3.240.0060.03912.72
5.3.230.0110.06012.71
5.3.220.0090.07812.68
5.3.210.0120.04412.68
5.3.200.0170.04812.68
5.3.190.0090.04612.68
5.3.180.0080.05112.67
5.3.170.0060.05312.67
5.3.160.0070.03712.68
5.3.150.0060.04012.67
5.3.140.0080.04612.66
5.3.130.0060.04912.66
5.3.120.0080.04612.66
5.3.110.0090.03812.66
5.3.100.0080.03912.12
5.3.90.0090.03612.09
5.3.80.0080.04412.09
5.3.70.0100.03412.09
5.3.60.0120.03412.07
5.3.50.0050.03812.02
5.3.40.0090.03612.02
5.3.30.0030.03711.98
5.3.20.0040.04311.76
5.3.10.0070.04011.72
5.3.00.0050.04111.71
5.2.170.0020.0349.22
5.2.160.0080.0379.22
5.2.150.0040.0329.21
5.2.140.0030.0359.21
5.2.130.0070.0359.18
5.2.120.0100.0239.17
5.2.110.0080.0289.18
5.2.100.0050.0319.18
5.2.90.0050.0329.18
5.2.80.0100.0279.17
5.2.70.0070.0409.17
5.2.60.0060.0359.13
5.2.50.0050.0319.09
5.2.40.0060.0329.07
5.2.30.0080.0269.05
5.2.20.0070.0269.03
5.2.10.0060.0268.94
5.2.00.0060.0278.80
5.1.60.0060.0228.09
5.1.50.0050.0248.08
5.1.40.0060.0228.06
5.1.30.0060.0248.41
5.1.20.0060.0248.43
5.1.10.0050.0288.16
5.1.00.0030.0268.16
5.0.50.0040.0226.64
5.0.40.0040.0186.50
5.0.30.0020.0336.31
5.0.20.0060.0206.27
5.0.10.0040.0226.25
5.0.00.0050.0296.25
4.4.90.0030.0164.77
4.4.80.0030.0154.76
4.4.70.0000.0194.76
4.4.60.0050.0164.75
4.4.50.0010.0184.77
4.4.40.0050.0274.71
4.4.30.0050.0194.76
4.4.20.0040.0144.84
4.4.10.0010.0184.85
4.4.00.0020.0264.76
4.3.110.0020.0174.66
4.3.100.0030.0144.66
4.3.90.0020.0164.63
4.3.80.0060.0224.59
4.3.70.0020.0154.63
4.3.60.0010.0164.63
4.3.50.0030.0154.63
4.3.40.0030.0244.53
4.3.30.0040.0143.30
4.3.20.0040.0183.28
4.3.10.0010.0203.24
4.3.00.0030.02015.91

preferences:
40.2 ms | 401 KiB | 5 Q