3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X{ public function a (){ echo "a\n"; } } class Y extends X{ public function x(){ echo "x\n"; $this->a(); } } $y = new Y; $y->x();

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.0100.00618.18
8.3.50.0080.01116.50
8.3.40.0090.00918.71
8.3.30.0120.00618.59
8.3.20.0040.00419.20
8.3.10.0040.00423.36
8.3.00.0000.00823.56
8.2.180.0100.00718.13
8.2.170.0070.00722.96
8.2.160.0130.00319.33
8.2.150.0000.00824.18
8.2.140.0050.00224.66
8.2.130.0080.00021.97
8.2.120.0040.00426.35
8.2.110.0110.00020.91
8.2.100.0140.00017.91
8.2.90.0060.00318.28
8.2.80.0050.00320.36
8.2.70.0000.00817.93
8.2.60.0000.00917.91
8.2.50.0040.00418.10
8.2.40.0000.00819.10
8.2.30.0040.00420.67
8.2.20.0040.00417.95
8.2.10.0040.00417.89
8.2.00.0000.00719.43
8.1.280.0030.01725.92
8.1.270.0000.00723.84
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00622.09
8.1.230.0070.00421.04
8.1.220.0040.00417.74
8.1.210.0000.00818.90
8.1.200.0000.00917.13
8.1.190.0060.00317.10
8.1.180.0050.00318.10
8.1.170.0040.00418.37
8.1.160.0000.00718.66
8.1.150.0040.00418.86
8.1.140.0000.00718.87
8.1.130.0070.00019.05
8.1.120.0040.00417.28
8.1.110.0030.00617.37
8.1.100.0040.00417.29
8.1.90.0050.00317.27
8.1.80.0000.00717.36
8.1.70.0030.00317.33
8.1.60.0000.00817.56
8.1.50.0040.00417.45
8.1.40.0000.00817.47
8.1.30.0040.00417.62
8.1.20.0000.00717.64
8.1.10.0000.00917.48
8.1.00.0030.00617.50
8.0.300.0030.00519.81
8.0.290.0050.00316.75
8.0.280.0030.00318.34
8.0.270.0030.00617.16
8.0.260.0060.00017.12
8.0.250.0000.00716.84
8.0.240.0070.00016.79
8.0.230.0000.00616.80
8.0.220.0030.00516.73
8.0.210.0070.00016.84
8.0.200.0030.00316.79
8.0.190.0040.00416.90
8.0.180.0040.00416.89
8.0.170.0060.00316.85
8.0.160.0040.00416.80
8.0.150.0100.00016.75
8.0.140.0040.00416.77
8.0.130.0030.00313.21
8.0.120.0040.00416.77
8.0.110.0030.00516.75
8.0.100.0000.00716.65
8.0.90.0040.00416.70
8.0.80.0070.01016.78
8.0.70.0070.00016.76
8.0.60.0050.00316.69
8.0.50.0070.00016.84
8.0.30.0110.00816.87
8.0.20.0090.01517.40
8.0.10.0040.00316.76
8.0.00.0090.01216.78
7.4.330.0050.00015.55
7.4.320.0040.00416.44
7.4.300.0000.00616.52
7.4.290.0030.00316.34
7.4.280.0000.00816.48
7.4.270.0030.00316.39
7.4.260.0000.00716.62
7.4.250.0040.00416.45
7.4.240.0030.00316.45
7.4.230.0000.00816.69
7.4.220.0040.00416.29
7.4.210.0060.00916.45
7.4.200.0030.00316.40
7.4.160.0100.00616.56
7.4.140.0090.00917.86
7.4.130.0130.00416.45
7.4.120.0100.00816.58
7.4.110.0130.00716.55
7.4.100.0080.00916.41
7.4.90.0140.00316.32
7.4.80.0040.01319.39
7.4.70.0090.00916.57
7.4.60.0060.00416.55
7.4.50.0080.00516.66
7.4.40.0150.00316.41
7.4.00.0060.00615.15
7.3.330.0030.00313.09
7.3.320.0060.00012.97
7.3.310.0000.00616.11
7.3.300.0040.00416.06
7.3.290.0030.00316.25
7.3.280.0080.00816.21
7.3.260.0080.01016.41
7.3.240.0100.01016.30
7.3.230.0030.01416.31
7.3.210.0140.00316.54
7.3.200.0060.01116.31
7.3.190.0060.00916.35
7.3.180.0060.01016.25
7.3.170.0030.01316.55
7.3.160.0090.00616.34
7.3.10.0130.00616.27
7.3.00.0100.00516.36
7.2.330.0140.00916.50
7.2.320.0070.01116.78
7.2.310.0150.00916.45
7.2.300.0100.00716.67
7.2.290.0120.00916.71
7.2.130.0170.00816.49
7.2.120.0110.01416.87
7.2.110.0140.00916.60
7.2.100.0060.01516.36
7.2.90.0080.00816.53
7.2.80.0200.01215.80
7.2.70.0250.00915.91
7.2.60.0430.00516.02
7.2.50.0230.00715.96
7.2.40.0290.01016.17
7.2.30.0240.00716.01
7.2.20.0250.01015.82
7.2.10.0260.00615.91
7.2.00.0270.00415.94
7.1.250.0120.00715.53
7.1.200.0550.00313.91
7.1.190.1310.00313.75
7.1.180.0660.00913.75
7.1.170.0540.00313.66
7.1.160.0560.00613.54
7.1.150.0590.00313.71
7.1.140.0590.00013.79
7.1.130.0560.00713.84
7.1.120.0550.00713.69
7.1.110.0510.01013.84
7.1.100.0520.00713.52
7.1.90.0560.01013.72
7.1.80.0520.00713.56
7.1.70.0780.00313.76
7.1.60.0790.00631.81
7.1.50.0910.00331.45
7.1.40.0770.00331.72
7.1.30.0610.01431.55
7.1.20.0740.01031.71
7.1.10.0540.00613.82
7.1.00.0490.01013.43

preferences:
58.89 ms | 400 KiB | 5 Q