3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public function b() { echo "Came from a"; } } class b extends a { public function b() { echo "Came from b"; } } $c = new b(); $c->b();

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.01018.55
8.3.50.0160.00721.91
8.3.40.0090.01218.47
8.3.30.0140.00318.41
8.3.20.0080.00020.29
8.3.10.0060.00323.48
8.3.00.0090.00019.13
8.2.180.0090.00618.29
8.2.170.0140.00722.96
8.2.160.0070.00720.53
8.2.150.0070.00024.18
8.2.140.0070.00024.66
8.2.130.0090.00317.25
8.2.120.0060.00326.35
8.2.110.0060.00322.25
8.2.100.0120.00017.50
8.2.90.0040.00419.17
8.2.80.0000.00817.97
8.2.70.0060.00317.48
8.2.60.0090.00018.04
8.2.50.0050.00318.07
8.2.40.0050.00219.39
8.2.30.0000.00820.61
8.2.20.0030.00617.67
8.2.10.0040.00417.99
8.2.00.0090.00017.89
8.1.280.0150.00625.92
8.1.270.0040.00423.82
8.1.260.0100.00728.09
8.1.250.0070.00028.09
8.1.240.0040.00420.47
8.1.230.0060.00617.42
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0060.00317.22
8.1.190.0060.00317.63
8.1.180.0070.00018.10
8.1.170.0080.00018.46
8.1.160.0000.00721.86
8.1.150.0000.00718.71
8.1.140.0000.00819.50
8.1.130.0030.00317.59
8.1.120.0040.00417.39
8.1.110.0000.00717.39
8.1.100.0030.00517.37
8.1.90.0000.00717.41
8.1.80.0050.00317.38
8.1.70.0030.00517.39
8.1.60.0060.00317.50
8.1.50.0030.00617.46
8.1.40.0000.00717.54
8.1.30.0040.00417.63
8.1.20.0050.00317.60
8.1.10.0050.00317.61
8.1.00.0000.00817.53
8.0.300.0000.00718.77
8.0.290.0030.00516.75
8.0.280.0070.00018.31
8.0.270.0030.00317.29
8.0.260.0000.00617.21
8.0.250.0030.00316.92
8.0.240.0030.00316.92
8.0.230.0000.00816.76
8.0.220.0000.00716.73
8.0.210.0080.00016.65
8.0.200.0000.00716.92
8.0.190.0040.00416.77
8.0.180.0070.00016.86
8.0.170.0000.00716.75
8.0.160.0000.00716.73
8.0.150.0030.00316.63
8.0.140.0020.00516.75
8.0.130.0000.00513.29
8.0.120.0050.00316.79
8.0.110.0040.00416.78
8.0.100.0000.00716.72
8.0.90.0070.00016.63
8.0.80.0040.01116.75
8.0.70.0000.00816.79
8.0.60.0030.00516.83
8.0.50.0040.00416.80
8.0.30.0120.00717.04
8.0.20.0120.01417.40
8.0.10.0050.00216.96
8.0.00.0130.00516.69
7.4.330.0000.00516.84
7.4.320.0000.00716.50
7.4.300.0070.00016.53
7.4.290.0000.00716.40
7.4.280.0000.00716.63
7.4.270.0040.00416.42
7.4.260.0040.00416.46
7.4.250.0000.00716.54
7.4.240.0040.00316.51
7.4.230.0040.00416.58
7.4.220.0070.01816.53
7.4.210.0040.01116.37
7.4.200.0040.00416.47
7.4.160.0110.00616.44
7.4.150.0060.01917.40
7.4.140.0130.00517.86
7.4.130.0050.01216.44
7.4.120.0130.01116.39
7.4.110.0130.00316.49
7.4.100.0090.00916.51
7.4.90.0040.01416.51
7.4.80.0090.01319.39
7.4.70.0080.00816.55
7.4.60.0130.00316.57
7.4.50.0070.00316.37
7.4.40.0070.01316.61
7.4.30.0170.00416.59
7.4.00.0070.01114.78
7.3.330.0000.00513.28
7.3.320.0000.00513.30
7.3.310.0000.00716.34
7.3.300.0000.00716.27
7.3.290.0110.00616.27
7.3.280.0070.00916.27
7.3.270.0200.00317.40
7.3.260.0060.01016.23
7.3.250.0130.00416.41
7.3.240.0050.01216.34
7.3.230.0100.00716.39
7.3.210.0120.00416.17
7.3.200.0100.00616.35
7.3.190.0100.00616.36
7.3.180.0070.01016.43
7.3.170.0160.00616.27
7.3.160.0110.01116.53
7.3.120.0060.00614.73
7.3.110.0110.00714.54
7.3.100.0000.01514.74
7.3.90.0070.00714.43
7.3.80.0000.01414.56
7.3.70.0070.00414.54
7.3.60.0040.01114.73
7.3.50.0070.00714.48
7.3.40.0000.01314.59
7.3.30.0060.00914.65
7.3.20.0040.01216.73
7.3.10.0060.00916.53
7.3.00.0030.01016.51
7.2.330.0060.01216.26
7.2.320.0070.01016.68
7.2.310.0030.01316.65
7.2.300.0070.01016.39
7.2.290.0100.00716.45
7.2.250.0070.01415.09
7.2.240.0130.00714.82
7.2.230.0070.01014.98
7.2.220.0060.01014.72
7.2.210.0000.01415.13
7.2.200.0040.01214.76
7.2.190.0030.00814.86
7.2.180.0000.01514.54
7.2.170.0000.01014.92
7.2.60.0040.01116.72
7.2.00.0030.01019.23
7.1.330.0100.00315.63
7.1.320.0000.01715.58
7.1.310.0060.00915.35
7.1.300.0080.00015.40
7.1.290.0050.00315.53
7.1.280.0030.00615.60
7.1.270.0090.00315.57
7.1.260.0060.00915.69
7.1.200.0040.01115.63
7.1.100.0080.00317.84
7.1.70.0030.00516.96
7.1.60.0100.01319.36
7.1.50.0100.01016.95
7.1.00.0030.07722.45
7.0.200.0030.00316.78
7.0.60.0230.06019.93
7.0.50.0070.04317.72
7.0.40.0130.07020.40
7.0.30.0270.06320.08
7.0.20.0270.05020.06
7.0.10.0070.04020.09
7.0.00.0070.08720.19
5.6.280.0100.06720.86
5.6.210.0130.07720.52
5.6.200.0070.03718.27
5.6.190.0030.04320.50
5.6.180.0330.07020.35
5.6.170.0100.04720.64
5.6.160.0070.06020.46
5.6.150.0070.04018.23
5.6.140.0170.07318.14
5.6.130.0070.05018.28
5.6.120.0000.04721.05
5.6.110.0070.08720.99
5.6.100.0100.05321.06
5.6.90.0100.08021.13
5.6.80.0200.07020.41
5.5.350.0200.08020.39
5.5.340.0200.06718.03
5.5.330.0070.04720.22
5.5.320.0170.06720.34
5.5.310.0170.04720.35
5.5.300.0100.03018.05
5.5.290.0070.08718.01
5.5.280.0100.06320.96
5.5.270.0070.07320.87
5.5.260.0070.07320.89
5.5.250.0200.07320.48
5.5.240.2270.05020.32

preferences:
44.29 ms | 401 KiB | 5 Q