3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function __get($k) { $this->$k = 42; return 0; } } $a = 42; try { $a %= 0; } catch (Error $e) { echo $e->getMessage(), "\n"; } var_dump($a); $test = new ArrayObject; $test[0] = 42; try { $test[0] %= 0; } catch (Error $e) { echo $e->getMessage(), "\n"; } var_dump($test); $test2 = new Test; try { $test2->prop %= 0; } catch (Error $e) { echo $e->getMessage(), "\n"; } var_dump($test2);

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.0050.01018.55
8.3.50.0040.01117.95
8.3.40.0150.00018.96
8.3.30.0070.00718.79
8.3.20.0030.00618.91
8.3.10.0050.00221.94
8.3.00.0040.00423.30
8.2.180.0120.00618.41
8.2.170.0140.00322.96
8.2.160.0110.00322.26
8.2.150.0050.00224.18
8.2.140.0050.00324.66
8.2.130.0000.00721.07
8.2.120.0080.00026.35
8.2.110.0040.00721.03
8.2.100.0040.00817.85
8.2.90.0060.00318.16
8.2.80.0000.00817.97
8.2.70.0040.00418.05
8.2.60.0040.00418.09
8.2.50.0000.00818.10
8.2.40.0040.00421.13
8.2.30.0040.00420.48
8.2.20.0050.00318.02
8.2.10.0060.00318.10
8.2.00.0000.00818.36
8.1.280.0060.00925.92
8.1.270.0040.00422.10
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0090.00022.40
8.1.230.0030.00920.84
8.1.220.0030.00617.77
8.1.210.0040.00418.89
8.1.200.0060.00717.35
8.1.190.0050.00317.13
8.1.180.0000.00818.10
8.1.170.0080.00018.53
8.1.160.0050.00318.75
8.1.150.0050.00318.96
8.1.140.0040.00418.92
8.1.130.0000.00721.96
8.1.120.0050.00217.44
8.1.110.0000.00717.35
8.1.100.0000.00717.36
8.1.90.0040.00417.46
8.1.80.0000.00717.51
8.1.70.0050.00217.41
8.1.60.0040.00417.60
8.1.50.0000.00817.48
8.1.40.0040.00417.52
8.1.30.0030.00517.61
8.1.20.0040.00417.63
8.1.10.0050.00217.61
8.1.00.0040.00417.51
8.0.300.0040.00419.92
8.0.290.0000.00716.75
8.0.280.0000.00718.44
8.0.270.0000.00716.80
8.0.260.0030.00318.36
8.0.250.0030.00316.91
8.0.240.0000.00916.88
8.0.230.0070.00016.92
8.0.220.0040.00416.93
8.0.210.0030.00316.88
8.0.200.0030.00317.05
8.0.190.0000.00717.06
8.0.180.0040.00416.98
8.0.170.0050.00517.00
8.0.160.0000.00816.91
8.0.150.0040.00416.95
8.0.140.0040.00416.88
8.0.130.0030.00313.35
8.0.120.0040.00416.93
8.0.110.0050.00316.93
8.0.100.0000.01016.97
8.0.90.0030.00616.78
8.0.80.0100.00717.00
8.0.70.0070.00016.94
8.0.60.0000.00716.80
8.0.50.0020.00516.89
8.0.30.0120.00717.17
8.0.20.0090.01017.40
8.0.10.0070.00017.02
8.0.00.0060.01216.87
7.4.330.0000.00515.55
7.4.320.0000.00716.59
7.4.300.0030.00316.50
7.4.290.0030.00316.54
7.4.280.0000.00716.61
7.4.270.0000.00716.52
7.4.260.0040.00416.44
7.4.250.0080.00016.53
7.4.240.0040.00416.48
7.4.230.0030.00316.40
7.4.220.0060.00316.68
7.4.210.0100.00716.55
7.4.200.0000.00716.38
7.4.160.0090.00816.46
7.4.140.0130.00817.86
7.4.130.0130.00916.47
7.4.120.0120.00716.58
7.4.110.0070.01016.63
7.4.100.0100.01316.44
7.4.90.0160.00316.68
7.4.80.0140.00719.39
7.4.70.0100.00716.54
7.4.60.0070.01316.55
7.4.50.0120.00616.32
7.4.40.0080.01216.53
7.4.00.0100.00714.66
7.3.330.0050.00013.23
7.3.320.0000.00613.42
7.3.310.0070.00016.52
7.3.300.0030.00316.43
7.3.290.0000.00716.37
7.3.280.0060.00916.40
7.3.260.0120.01016.48
7.3.240.0060.01116.56
7.3.230.0100.00716.29
7.3.210.0030.01616.61
7.3.200.0100.00716.61
7.3.190.0120.00616.41
7.3.180.0120.00616.25
7.3.170.0030.01316.57
7.3.160.0060.00916.61
7.2.330.0090.00916.70
7.2.320.0090.01216.66
7.2.310.0130.00516.79
7.2.300.0160.00816.45
7.2.290.0130.00616.38
7.2.110.0280.00316.45
7.2.100.2090.00314.79
7.2.90.2280.00314.44
7.2.80.2490.00314.52
7.2.70.1850.00614.98
7.2.60.1810.01014.87
7.2.50.2080.01314.66
7.2.40.2190.00314.93
7.2.30.2210.00714.61
7.2.20.2860.00314.80
7.2.10.2240.00614.68
7.2.00.2340.01015.06
7.1.220.1850.01013.89
7.1.210.2400.00313.55
7.1.200.2130.00313.89
7.1.190.2150.01013.73
7.1.180.2390.00713.82
7.1.170.2420.01013.77
7.1.160.2270.00313.76
7.1.150.1950.00913.76
7.1.140.2920.00313.70
7.1.130.2960.01013.86
7.1.120.2560.00613.85
7.1.110.2860.00313.99
7.1.100.2580.00613.71
7.1.90.2850.01013.76
7.1.80.2950.01013.68
7.1.70.3090.00613.82
7.1.60.3250.01331.79
7.1.50.4840.01331.61
7.1.40.4260.01331.46
7.1.30.4710.00531.70
7.1.20.4630.01931.71
7.1.10.4370.00313.84
7.1.00.3950.00714.00
5.6.380.0110.00714.13

preferences:
33.27 ms | 400 KiB | 5 Q