3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public function foo() { return $this->bar(); } } class b extends a { public function bar() { return 'bar'; } } echo(new b)->foo();

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.0150.00018.18
8.3.50.0090.00618.09
8.3.40.0120.00318.90
8.3.30.0140.00018.61
8.3.20.0040.00419.20
8.3.10.0080.00023.67
8.3.00.0000.00823.57
8.2.180.0140.00417.93
8.2.170.0070.00722.96
8.2.160.0030.01520.49
8.2.150.0060.00324.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0000.00819.82
8.2.110.0060.00322.32
8.2.100.0060.00617.84
8.2.90.0000.00817.84
8.2.80.0000.00817.97
8.2.70.0030.00517.80
8.2.60.0040.00418.04
8.2.50.0050.00318.10
8.2.40.0000.00819.35
8.2.30.0050.00320.49
8.2.20.0070.00017.99
8.2.10.0000.00717.83
8.2.00.0030.00319.33
8.1.280.0120.00325.92
8.1.270.0050.00321.89
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0090.00022.31
8.1.230.0110.00020.93
8.1.220.0040.00417.74
8.1.210.0050.00318.91
8.1.200.0040.00417.10
8.1.190.0040.00417.00
8.1.180.0040.00418.10
8.1.170.0040.00418.89
8.1.160.0000.00718.62
8.1.150.0000.00718.67
8.1.140.0000.00718.84
8.1.130.0040.00718.84
8.1.120.0050.00317.26
8.1.110.0000.00817.23
8.1.100.0040.00417.21
8.1.90.0070.00317.31
8.1.80.0040.00417.34
8.1.70.0000.00717.22
8.1.60.0060.00317.39
8.1.50.0040.00417.45
8.1.40.0100.00017.49
8.1.30.0090.00517.63
8.1.20.0000.00717.48
8.1.10.0000.00817.39
8.1.00.0040.00417.50
8.0.300.0040.00420.03
8.0.290.0070.00016.63
8.0.280.0050.00218.29
8.0.270.0030.00317.29
8.0.260.0030.00317.21
8.0.250.0000.00717.00
8.0.240.0090.00016.93
8.0.230.0020.00516.77
8.0.220.0030.00316.73
8.0.210.0030.00316.80
8.0.200.0000.00616.84
8.0.190.0000.00716.79
8.0.180.0030.00516.67
8.0.170.0090.00016.66
8.0.160.0040.00416.73
8.0.150.0040.00416.61
8.0.140.0050.00316.64
8.0.130.0030.00313.18
8.0.120.0040.00416.76
8.0.110.0000.00816.72
8.0.100.0050.00216.73
8.0.90.0020.00516.66
8.0.80.0050.01216.76
8.0.70.0040.00416.63
8.0.60.0000.00716.71
8.0.50.0070.00016.78
8.0.30.0120.00817.01
8.0.20.0150.01217.40
8.0.10.0040.00416.83
8.0.00.0110.00816.81
7.4.330.0000.00515.55
7.4.320.0000.00616.42
7.4.300.0030.00316.53
7.4.290.0070.00016.51
7.4.280.0000.00916.53
7.4.270.0070.00316.56
7.4.260.0000.00716.40
7.4.250.0000.00716.29
7.4.240.0000.00716.44
7.4.230.0070.00016.33
7.4.220.0050.00216.42
7.4.210.0070.00916.52
7.4.200.0030.00316.59
7.4.160.0120.00516.41
7.4.140.0150.00617.86
7.4.130.0110.00616.49
7.4.120.0070.01216.45
7.4.110.0100.00716.42
7.4.100.0080.01316.72
7.4.90.0140.01016.57
7.4.80.0130.00719.39
7.4.70.0070.01016.49
7.4.60.0110.01016.31
7.4.50.0060.01116.31
7.4.40.0110.00516.60
7.4.00.0040.01415.04
7.3.330.0000.00513.06
7.3.320.0000.00613.07
7.3.310.0000.00616.11
7.3.300.0030.00316.25
7.3.290.0070.00016.25
7.3.280.0120.00616.23
7.3.260.0120.00516.36
7.3.240.0080.01016.29
7.3.230.0120.00916.36
7.3.210.0100.00616.11
7.3.200.0080.00916.39
7.3.190.0060.01016.41
7.3.180.0140.00616.53
7.3.170.0150.00616.37
7.3.160.0060.00916.19
7.3.120.0000.01514.61
7.3.110.0040.01414.63
7.3.100.0100.00614.70
7.3.90.0040.00714.76
7.3.80.0130.00314.66
7.3.70.0060.00814.61
7.3.60.0040.01114.62
7.3.50.0090.00614.73
7.3.40.0030.01014.83
7.3.30.0070.00714.58
7.3.20.0070.00316.57
7.3.10.0060.00616.55
7.3.00.0000.01016.34
7.2.330.0100.01316.72
7.2.320.0070.01416.55
7.2.310.0090.01316.50
7.2.300.0060.01616.62
7.2.290.0040.01216.38
7.2.250.0040.01115.11
7.2.240.0130.00615.02
7.2.230.0040.00714.91
7.2.220.0060.00614.99
7.2.210.0060.00914.89
7.2.200.0000.01814.83
7.2.190.0040.01414.65
7.2.180.0100.00314.86
7.2.170.0110.00414.93
7.2.80.0850.01314.35
7.2.70.1000.00014.46
7.2.60.0860.00614.46
7.2.50.0860.01314.46
7.2.40.0860.01014.79
7.2.30.0860.01014.26
7.2.20.0860.01014.61
7.2.10.1090.00714.40
7.2.00.1200.00314.72
7.1.330.0070.00715.47
7.1.320.0060.00315.79
7.1.310.0080.00415.67
7.1.300.0030.01215.69
7.1.290.0100.00715.75
7.1.280.0060.00615.40
7.1.270.0000.01215.68
7.1.260.0000.01515.70
7.1.200.0030.00915.50
7.1.190.0870.00313.68
7.1.180.0870.00713.45
7.1.170.0890.01013.46
7.1.160.0950.00613.51
7.1.150.1010.00713.64
7.1.140.0980.00713.48
7.1.130.1150.00713.64
7.1.120.1640.00613.79
7.1.110.1220.01013.28
7.1.100.1150.00713.35
7.1.90.1600.01013.79
7.1.80.1450.00013.43
7.1.70.1340.00613.75
7.1.60.1390.01031.58
7.1.50.1800.01031.51
7.1.40.1890.01031.66
7.1.30.1920.00731.67
7.1.20.2010.01031.41
7.1.10.1880.00713.60
7.1.00.1330.00713.44

preferences:
56.56 ms | 400 KiB | 5 Q