3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function lol() { var_dump('Calling in base class'); } } class Baz extends Foo { public function lol() { var_dump('Calling in sub class'); } } $x = new Baz(); $x->lol();

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.0070.01118.30
8.3.50.0090.00721.92
8.3.40.0170.00318.54
8.3.30.0070.01018.84
8.3.20.0040.00420.16
8.3.10.0040.00422.14
8.3.00.0050.00222.46
8.2.180.0110.00416.38
8.2.170.0100.01018.91
8.2.160.0100.00322.96
8.2.150.0040.01424.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0000.00717.63
8.2.110.0030.00622.25
8.2.100.0090.00319.51
8.2.90.0000.00819.05
8.2.80.0000.01017.97
8.2.70.0040.00417.59
8.2.60.0000.00817.91
8.2.50.0080.00018.07
8.2.40.0040.00418.03
8.2.30.0040.00417.89
8.2.20.0040.00417.59
8.2.10.0040.00417.59
8.2.00.0040.00417.54
8.1.280.0170.00325.92
8.1.270.0000.00722.20
8.1.260.0070.00026.35
8.1.250.0060.00328.09
8.1.240.0030.00623.92
8.1.230.0110.00018.97
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0080.00017.23
8.1.190.0080.00017.40
8.1.180.0030.00518.10
8.1.170.0030.00618.66
8.1.160.0090.00021.85
8.1.150.0000.00718.56
8.1.140.0000.00717.37
8.1.130.0000.00817.81
8.1.120.0080.00317.43
8.1.110.0030.00617.27
8.1.100.0040.00417.40
8.1.90.0030.00417.34
8.1.80.0000.00717.28
8.1.70.0000.00717.41
8.1.60.0040.00417.48
8.1.50.0040.00417.46
8.1.40.0040.00417.48
8.1.30.0040.00417.55
8.1.20.0000.00817.46
8.1.10.0030.00617.40
8.1.00.0000.00717.32
8.0.300.0000.00718.77
8.0.290.0070.00017.05
8.0.280.0000.00718.28
8.0.270.0070.00017.23
8.0.260.0030.00316.72
8.0.250.0040.00416.87
8.0.240.0000.00716.84
8.0.230.0000.00616.91
8.0.220.0070.00016.79
8.0.210.0070.00016.84
8.0.200.0030.00316.84
8.0.190.0030.00516.91
8.0.180.0000.00716.74
8.0.170.0040.00416.82
8.0.160.0040.00416.75
8.0.150.0030.00616.81
8.0.140.0000.00716.78
8.0.130.0000.00513.18
8.0.120.0090.00016.76
8.0.110.0000.00716.73
8.0.100.0040.00416.77
8.0.90.0040.00416.81
8.0.80.0000.01516.75
8.0.70.0040.00416.78
8.0.60.0000.00716.93
8.0.50.0000.00716.69
8.0.30.0120.00616.97
8.0.20.0120.00617.40
8.0.10.0000.00716.83
8.0.00.0120.00616.83
7.4.330.0000.00615.00
7.4.320.0030.00316.52
7.4.300.0030.00316.56
7.4.290.0040.00416.47
7.4.280.0000.00816.53
7.4.270.0040.00416.39
7.4.260.0030.00316.46
7.4.250.0050.00216.45
7.4.240.0000.00716.50
7.4.230.0030.00516.52
7.4.220.0100.01016.57
7.4.210.0060.01116.45
7.4.200.0050.00216.68
7.4.190.0050.00216.67
7.4.160.0150.00016.43
7.4.150.0060.01217.40
7.4.140.0120.00817.86
7.4.130.0090.00916.47
7.4.120.0110.00616.50
7.4.110.0140.00816.41
7.4.100.0030.01316.42
7.4.90.0140.00316.56
7.4.80.0150.00319.39
7.4.70.0100.00716.63
7.4.60.0070.01016.46
7.4.50.0000.00916.38
7.4.40.0060.00922.77
7.4.30.0080.00816.26
7.4.00.0040.01415.08
7.3.330.0060.00013.21
7.3.320.0050.00013.10
7.3.310.0030.00316.14
7.3.300.0050.00216.35
7.3.290.0130.00316.24
7.3.280.0030.01216.26
7.3.270.0130.00717.40
7.3.260.0130.01016.13
7.3.250.0140.00316.26
7.3.240.0030.01316.30
7.3.230.0140.00316.47
7.3.210.0110.00516.30
7.3.200.0030.01619.39
7.3.190.0130.00316.46
7.3.180.0040.01116.11
7.3.170.0090.00616.27
7.3.160.0100.00716.28
7.3.120.0070.01014.68
7.3.10.0130.00416.03
7.3.00.0100.00516.33
7.2.330.0100.00716.25
7.2.320.0090.00916.50
7.2.310.0120.00916.37
7.2.300.0100.00716.52
7.2.290.0050.01116.55
7.2.130.0110.00316.30
7.2.120.0120.00816.36
7.2.110.0100.00816.45
7.2.100.0150.00616.27
7.2.90.0090.01416.36
7.2.80.0130.00616.38
7.2.70.0140.00916.57
7.2.60.0100.01116.24
7.2.50.0140.00816.29
7.2.40.0160.00916.57
7.2.30.0120.01016.28
7.2.20.0160.01016.45
7.2.10.0120.01016.54
7.2.00.0110.00817.42
7.1.250.0150.00515.45
7.1.200.0250.00615.51
7.1.100.0000.01117.63
7.1.70.0000.00716.80
7.1.60.0110.01419.82
7.1.50.0100.01316.98
7.1.00.0000.08022.48
7.0.200.0080.00316.61
7.0.140.0030.07722.00
7.0.100.0170.06721.72
7.0.90.0130.07321.77
7.0.80.0070.06021.73
7.0.70.0200.05721.69
7.0.60.0030.06321.83
7.0.50.0070.07022.11
7.0.40.0070.06020.05
7.0.30.0000.10020.14
7.0.20.0100.07720.05
7.0.10.0070.06020.10
7.0.00.0130.07720.12
5.6.280.0100.06721.13
5.6.250.0130.07320.54
5.6.240.0070.08020.65
5.6.230.0070.08020.68
5.6.220.0070.06720.67
5.6.210.0130.07720.47
5.6.200.0070.07721.14
5.6.190.0030.09021.01
5.6.180.0070.04721.04
5.6.170.0130.06321.14
5.6.160.0100.07720.99
5.6.150.0130.07721.04
5.6.140.0000.09020.96
5.6.130.0030.08721.11
5.6.120.0000.04021.06
5.6.110.0000.04321.07
5.6.100.0000.04721.07
5.6.90.0070.04021.06
5.6.80.0070.03720.50
5.6.70.0000.04320.50
5.6.60.0070.05020.31
5.6.50.0030.04020.52
5.6.40.0130.07320.38
5.6.30.0000.04320.47
5.6.20.0070.03320.41
5.6.10.0030.06020.37
5.6.00.0070.03720.37
5.5.380.0070.08320.43
5.5.370.0130.07720.52
5.5.360.0130.07320.41
5.5.350.0100.07020.46
5.5.340.0030.04720.75
5.5.330.0100.07320.74
5.5.320.0100.07720.79
5.5.310.0100.07020.74
5.5.300.0130.06020.74
5.5.290.0100.07720.76
5.5.280.0030.09320.84
5.5.270.0030.04020.91
5.5.260.0030.04320.92
5.5.250.0030.04720.58
5.5.240.0000.03320.28
5.5.230.0100.04720.21
5.5.220.0000.05020.25
5.5.210.0030.03720.11
5.5.200.0100.04020.27
5.5.190.0000.07020.09
5.5.180.0070.06020.28
5.5.160.0030.07020.29
5.5.150.0030.03719.95
5.5.140.0000.04020.14
5.5.130.0030.06020.27
5.5.120.0000.04020.22
5.5.110.0000.04020.21
5.5.100.0100.03320.02
5.5.90.0070.03320.09
5.5.80.0030.03720.14
5.5.70.0000.04020.06
5.5.60.0030.04020.02
5.5.50.0000.03720.03
5.5.40.0070.03320.09
5.5.30.0000.08720.05
5.5.20.0030.05320.11
5.5.10.0030.03720.07
5.5.00.0000.04320.04
5.4.450.0030.05019.51
5.4.440.0030.04319.41
5.4.430.0030.04019.35
5.4.420.0030.03719.36
5.4.410.0000.04719.23
5.4.400.0030.03319.10
5.4.390.0000.04319.09
5.4.380.0070.03019.05
5.4.370.0030.03719.01
5.4.360.0070.03319.20
5.4.350.0030.05718.87
5.4.340.0070.06319.13
5.4.320.0030.03719.21
5.4.310.0000.04019.03
5.4.300.0030.03319.13
5.4.290.0000.03318.85
5.4.280.0000.04019.12
5.4.270.0000.03719.04
5.4.260.0000.03718.94
5.4.250.0000.04019.04
5.4.240.0000.03719.16
5.4.230.0000.03719.04
5.4.220.0000.04319.12
5.4.210.0000.04718.87
5.4.200.0100.03019.19
5.4.190.0100.03019.03
5.4.180.0100.02719.12
5.4.170.0100.02718.84
5.4.160.0030.03718.92
5.4.150.0070.03319.11
5.4.140.0030.04016.51
5.4.130.0030.03316.48
5.4.120.0000.03716.39
5.4.110.0030.03316.52
5.4.100.0000.03716.32
5.4.90.0030.05316.45
5.4.80.0030.04716.35
5.4.70.0000.06016.43
5.4.60.0030.03016.41
5.4.50.0030.04316.44
5.4.40.0100.04716.50
5.4.30.0070.06716.30
5.4.20.0070.03716.48
5.4.10.0070.06716.30
5.4.00.0070.04715.90
5.3.290.0000.04014.64
5.3.280.0000.03714.66
5.3.270.0000.03714.75
5.3.260.0030.04714.61
5.3.250.0000.04014.70
5.3.240.0070.03014.57
5.3.230.0000.04014.72
5.3.220.0000.03714.62
5.3.210.0000.03714.57
5.3.200.0000.03714.71
5.3.190.0000.04014.66
5.3.180.0000.03714.55
5.3.170.0070.05314.65
5.3.160.0030.07314.48
5.3.150.0070.06714.55
5.3.140.0000.05714.56
5.3.130.0100.06714.53
5.3.120.0100.07314.56
5.3.110.0030.08014.67
5.3.100.0070.06314.10
5.3.90.0030.05014.13
5.3.80.0030.07014.14
5.3.70.0000.04714.14
5.3.60.0030.06313.93
5.3.50.0070.07013.98
5.3.40.0070.07313.93
5.3.30.0000.04313.92
5.3.20.0070.07013.73
5.3.10.0030.06713.76
5.3.00.0070.05713.78
5.2.170.0070.05711.24
5.2.160.0070.05311.17
5.2.150.0030.06011.05
5.2.140.0000.06711.20
5.2.130.0030.05711.20
5.2.120.0070.06011.20
5.2.110.0000.06011.01
5.2.100.0100.05711.13
5.2.90.0030.05711.09
5.2.80.0000.06011.21
5.2.70.0000.03311.10
5.2.60.0030.06010.91
5.2.50.0030.04011.10
5.2.40.0000.03711.09
5.2.30.0070.05711.06
5.2.20.0030.03310.90
5.2.10.0000.03310.81
5.2.00.0030.06010.78
5.1.60.0030.0539.99
5.1.50.0000.0509.99
5.1.40.0030.0509.82
5.1.30.0000.05010.40
5.1.20.0000.05310.30
5.1.10.0070.05010.06
5.1.00.0030.0509.96
5.0.50.0000.0478.54
5.0.40.0030.0408.47
5.0.30.0030.0478.47
5.0.20.0030.0408.47
5.0.10.0030.0378.47
5.0.00.0000.0708.47
4.4.90.0000.0338.47
4.4.80.0030.0338.47
4.4.70.0000.0408.47
4.4.60.0070.0278.47
4.4.50.0000.0308.47
4.4.40.0000.0538.47
4.4.30.0070.0278.47
4.4.20.0000.0378.47
4.4.10.0000.0378.47
4.4.00.0070.0538.47
4.3.110.0030.0308.47
4.3.100.0000.0378.47
4.3.90.0030.0208.47
4.3.80.0000.0538.47
4.3.70.0000.0308.47
4.3.60.0000.0208.47
4.3.50.0030.0338.47
4.3.40.0000.0508.47
4.3.30.0000.0378.47
4.3.20.0030.0308.47
4.3.10.0000.0378.47
4.3.00.0030.0238.47

preferences:
114.63 ms | 401 KiB | 5 Q