3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $foo; public function &__get($name) { echo "get($name)\n"; return $this->foo; } public function __set($name, $val) { echo "set($name)\n"; } } $foo = new Foo; $foo->bar += 1;

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.5.30.0070.01119.36
8.5.20.0080.01219.62
8.5.10.0120.00716.63
8.5.00.0110.01620.06
8.4.180.0100.01125.71
8.4.170.0130.00823.79
8.4.160.0140.00623.81
8.4.150.0070.00616.89
8.4.140.0140.00717.71
8.4.130.0050.00417.79
8.4.120.0050.00420.58
8.4.110.0110.00922.50
8.4.100.0100.01017.51
8.4.90.0120.00819.47
8.4.80.0060.00517.98
8.4.70.0050.00617.93
8.4.60.0130.01018.67
8.4.50.0120.00817.59
8.4.40.0040.01217.67
8.4.30.0090.00619.46
8.4.20.0040.01617.69
8.4.10.0030.00617.75
8.3.300.0080.01320.73
8.3.290.0120.00820.70
8.3.280.0110.00918.32
8.3.270.0130.00616.42
8.3.260.0150.00516.72
8.3.250.0120.00618.65
8.3.240.0070.00416.73
8.3.230.0050.00316.70
8.3.220.0030.00517.19
8.3.210.0070.00116.69
8.3.200.0050.00416.32
8.3.190.0120.00619.17
8.3.180.0110.00817.04
8.3.170.0090.00916.85
8.3.160.0120.00618.56
8.3.150.0090.00916.99
8.3.140.0030.00517.01
8.3.130.0050.00318.56
8.3.120.0030.00619.21
8.3.110.0050.00320.94
8.3.100.0110.00824.06
8.3.90.0050.00326.77
8.3.80.0090.00318.56
8.3.70.0100.01016.38
8.3.60.0120.00616.75
8.3.50.0110.00518.13
8.3.40.0150.00018.88
8.3.30.0110.00418.68
8.3.20.0040.00419.06
8.3.10.0040.00420.92
8.3.00.0040.00423.70
8.2.300.0110.00917.91
8.2.290.0130.00620.24
8.2.280.0130.00518.18
8.2.270.0060.01216.49
8.2.260.0070.00719.13
8.2.250.0030.00616.60
8.2.240.0030.00617.20
8.2.230.0000.00922.58
8.2.220.0030.00637.54
8.2.210.0130.01026.77
8.2.200.0110.00016.50
8.2.190.0080.00816.58
8.2.180.0140.00318.13
8.2.170.0090.00622.96
8.2.160.0070.00721.93
8.2.150.0080.00024.18
8.2.140.0110.00024.66
8.2.130.0080.00019.82
8.2.120.0000.00826.35
8.2.110.0000.00820.52
8.2.100.0090.00317.97
8.2.90.0040.00418.34
8.2.80.0080.00018.05
8.2.70.0000.00917.93
8.2.60.0080.00018.03
8.2.50.0080.00018.10
8.2.40.0040.00419.47
8.2.30.0040.00419.44
8.2.20.0040.00418.17
8.2.10.0070.00018.07
8.2.00.0040.00419.54
8.1.340.0120.00719.61
8.1.330.0080.01118.44
8.1.320.0140.00616.34
8.1.310.0170.00016.58
8.1.300.0000.00816.24
8.1.290.0000.00930.84
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0030.00928.09
8.1.240.0100.00019.29
8.1.230.0000.01120.89
8.1.220.0060.00317.78
8.1.210.0000.00820.05
8.1.200.0000.00817.43
8.1.190.0080.00017.23
8.1.180.0080.00018.10
8.1.170.0050.00218.39
8.1.160.0000.00818.78
8.1.150.0040.00418.82
8.1.140.0080.00017.62
8.1.130.0030.00319.00
8.1.120.0040.00417.43
8.1.110.0040.00317.26
8.1.100.0050.00317.37
8.1.90.0000.01017.39
8.1.80.0000.00717.27
8.1.70.0050.00317.40
8.1.60.0020.00517.57
8.1.50.0000.00817.39
8.1.40.0000.00717.42
8.1.30.0030.00617.59
8.1.20.0050.00317.65
8.1.10.0000.00717.47
8.1.00.0030.00617.48
8.0.300.0070.00020.14
8.0.290.0030.00616.75
8.0.280.0080.00018.34
8.0.270.0000.00817.20
8.0.260.0070.00018.98
8.0.250.0080.00016.95
8.0.240.0040.00416.86
8.0.230.0070.00316.84
8.0.220.0040.00316.73
8.0.210.0040.00416.87
8.0.200.0060.00316.95
8.0.190.0030.00516.94
8.0.180.0020.00516.94
8.0.170.0000.00816.79
8.0.160.0070.00016.75
8.0.150.0080.00416.72
8.0.140.0070.00016.83
8.0.130.0030.00313.30
8.0.120.0000.00816.88
8.0.110.0070.00016.79
8.0.100.0040.00416.85
8.0.90.0030.00516.68
8.0.80.0070.00916.85
8.0.70.0040.00416.92
8.0.60.0000.00816.87
8.0.50.0050.00216.77
8.0.30.0120.00717.02
8.0.20.0070.01817.40
8.0.10.0040.00416.89
8.0.00.0130.00516.78
7.4.330.0000.00615.55
7.4.320.0030.00316.44
7.4.300.0060.00016.63
7.4.290.0050.00216.57
7.4.280.0000.00816.49
7.4.270.0030.00616.48
7.4.260.0050.00216.58
7.4.250.0040.00416.47
7.4.240.0030.00316.60
7.4.230.0000.00716.70
7.4.220.0000.00816.41
7.4.210.0080.00916.64
7.4.200.0040.00416.47
7.4.160.0080.01216.52
7.4.140.0090.00817.86
7.4.130.0030.01316.41
7.4.120.0130.00816.49
7.4.110.0100.00616.38
7.4.100.0070.01016.50
7.4.90.0090.01216.51
7.4.80.0070.01419.39
7.4.70.0100.00616.41
7.4.60.0030.01316.38
7.4.50.0100.00716.64
7.4.40.0100.00716.41
7.4.00.0070.01015.01
7.3.330.0050.00013.21
7.3.320.0060.00013.20
7.3.310.0070.00016.32
7.3.300.0000.00616.21
7.3.290.0000.00716.18
7.3.280.0060.01116.34
7.3.260.0110.00716.41
7.3.240.0090.00916.42
7.3.230.0100.00616.45
7.3.210.0100.01016.29
7.3.200.0030.01316.46
7.3.190.0090.00616.31
7.3.180.0040.01316.40
7.3.170.0060.01016.48
7.3.160.0100.01216.52
7.3.10.0060.00816.40
7.3.00.0120.00316.58
7.2.330.0060.01216.70
7.2.320.0110.00716.75
7.2.310.0130.00316.73
7.2.300.0030.01316.44
7.2.290.0000.01716.71
7.2.130.0090.00616.72
7.2.120.0050.01116.90
7.2.110.0050.01016.75
7.2.100.0050.01016.78
7.2.90.0070.00716.88
7.2.80.0060.00816.68
7.2.70.0120.00316.98
7.2.60.0480.00716.22
7.2.50.0400.01016.12
7.2.40.0470.00716.32
7.2.30.0390.01116.39
7.2.20.0410.00816.29
7.2.10.0760.00916.36
7.2.00.0430.00816.39
7.1.250.0050.00415.64
7.1.200.0080.00815.36
7.1.170.1010.00813.64
7.1.160.1150.00816.71
7.1.150.1030.01016.47
7.1.140.1350.01416.35
7.1.130.1680.01516.75
7.1.120.1410.01116.80
7.1.110.1310.00816.21
7.1.100.1140.01015.82
7.1.90.1310.01316.24
7.1.80.1230.00916.27
7.1.70.1390.01115.21
7.1.60.1700.01433.21
7.1.50.1490.01432.94
7.1.40.1630.01532.56
7.1.30.1500.01432.33
7.1.20.1120.01632.68
7.1.10.1220.01114.72
7.1.00.1000.00914.66

preferences:
77.84 ms | 1437 KiB | 5 Q