3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function foo() { return __CLASS__; } } class B extends A { } $b = new B(); echo $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.0110.00418.55
8.3.50.0100.00521.09
8.3.40.0040.01118.72
8.3.30.0110.00718.80
8.3.20.0140.00020.24
8.3.10.0000.00822.05
8.3.00.0070.00022.48
8.2.180.0040.01116.62
8.2.170.0040.01122.96
8.2.160.0120.00320.43
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0090.00026.16
8.2.120.0050.00319.65
8.2.110.0090.00022.07
8.2.100.0070.00417.66
8.2.90.0040.00417.78
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0040.00417.90
8.2.50.0000.00818.07
8.2.40.0060.00318.22
8.2.30.0030.00618.04
8.2.20.0000.00717.70
8.2.10.0000.00817.49
8.2.00.0000.00817.60
8.1.280.0120.00925.92
8.1.270.0060.00320.27
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00622.62
8.1.230.0040.00821.04
8.1.220.0060.00317.79
8.1.210.0040.00418.80
8.1.200.0060.00317.35
8.1.190.0000.00717.53
8.1.180.0050.00218.57
8.1.170.0050.00318.57
8.1.160.0040.00422.03
8.1.150.0030.00618.61
8.1.140.0050.00317.38
8.1.130.0030.00317.81
8.1.120.0070.00017.28
8.1.110.0070.00017.28
8.1.100.0000.00817.28
8.1.90.0000.00717.38
8.1.80.0050.00217.40
8.1.70.0030.00317.34
8.1.60.0050.00317.58
8.1.50.0050.00217.46
8.1.40.0030.00517.52
8.1.30.0070.00017.58
8.1.20.0000.00817.65
8.1.10.0000.00817.46
8.1.00.0060.00317.52
8.0.300.0040.00419.80
8.0.290.0040.00317.17
8.0.280.0000.00718.35
8.0.270.0030.00317.10
8.0.260.0030.00316.82
8.0.250.0000.00616.82
8.0.240.0000.00716.96
8.0.230.0030.00316.75
8.0.220.0040.00416.89
8.0.210.0030.00316.72
8.0.200.0000.00616.81
8.0.190.0000.00716.90
8.0.180.0030.00616.72
8.0.170.0050.00316.75
8.0.160.0000.00816.84
8.0.150.0040.00416.67
8.0.140.0000.00716.81
8.0.130.0060.00013.29
8.0.120.0030.00516.77
8.0.110.0000.00716.71
8.0.100.0000.00716.71
8.0.90.0040.00416.65
8.0.80.0060.00916.81
8.0.70.0000.00716.77
8.0.60.0040.00416.63
8.0.50.0000.00816.61
8.0.30.0060.01217.17
8.0.20.0140.00917.40
8.0.10.0050.00216.83
8.0.00.0090.00916.57
7.4.330.0030.00315.00
7.4.320.0030.00316.34
7.4.300.0000.00616.61
7.4.290.0000.00716.63
7.4.280.0040.00416.58
7.4.270.0060.00016.35
7.4.260.0070.00016.49
7.4.250.0040.00416.36
7.4.240.0020.00516.55
7.4.230.0030.00316.49
7.4.220.0070.01116.60
7.4.210.0090.00716.56
7.4.200.0000.00716.49
7.4.190.0070.00016.50
7.4.160.0030.01316.50
7.4.150.0130.00417.40
7.4.140.0110.00917.86
7.4.130.0110.00816.55
7.4.120.0080.00916.53
7.4.110.0130.00316.34
7.4.100.0150.00316.36
7.4.90.0130.00316.40
7.4.80.0060.01119.39
7.4.70.0070.01016.41
7.4.60.0090.00916.51
7.4.50.0030.00316.52
7.4.40.0060.01022.77
7.4.30.0080.00816.51
7.4.00.0070.01015.03
7.3.330.0020.00213.10
7.3.320.0020.00313.16
7.3.310.0000.00616.09
7.3.300.0000.00616.09
7.3.290.0070.00716.25
7.3.280.0080.00616.22
7.3.270.0100.00617.40
7.3.260.0100.01316.69
7.3.250.0090.00916.27
7.3.240.0120.00816.33
7.3.230.0070.01416.52
7.3.210.0070.01116.51
7.3.200.0160.01019.39
7.3.190.0030.01316.51
7.3.180.0030.01316.24
7.3.170.0030.01416.40
7.3.160.0040.01116.23
7.3.120.0070.00714.89
7.2.330.0030.01516.34
7.2.320.0130.01016.75
7.2.310.0060.01016.36
7.2.300.0080.00816.41
7.2.290.0120.00316.70
7.2.00.0070.00719.00
7.1.100.0000.01017.52
7.1.70.0000.00716.86
7.1.60.0040.01119.82
7.1.50.0090.01616.58
7.1.00.0030.03322.45
7.0.200.0090.00016.67
7.0.140.0030.07021.96
7.0.60.0200.03720.01
7.0.50.0030.04317.85
7.0.40.0100.07320.02
7.0.30.0300.08320.26
7.0.20.0370.07320.11
7.0.10.0270.05020.23
7.0.00.0100.04020.12
5.6.210.0070.05320.68
5.6.200.0100.04718.17
5.6.190.0100.04720.59
5.6.180.3370.05020.51
5.6.170.0170.04720.54
5.6.160.0070.09320.71
5.6.150.0070.06018.16
5.6.140.0100.05318.18
5.6.130.0070.08718.18
5.6.120.0030.08321.00
5.6.110.0200.06321.13
5.6.100.0100.07020.98
5.6.90.0030.07720.93
5.6.80.0100.08320.38
5.5.350.0230.04020.35
5.5.340.0100.05718.07
5.5.330.0030.04320.27
5.5.320.0200.04020.42
5.5.310.0070.05020.28
5.5.300.0130.04318.07
5.5.290.0030.08317.99
5.5.280.0030.04020.65
5.5.270.0030.09020.87
5.5.260.0100.07720.71
5.5.250.0070.07020.66
5.5.240.0270.08020.16
5.4.450.0830.05319.48
5.4.440.0970.06319.70
5.4.430.0830.04719.60
5.4.420.0670.05019.69
5.4.410.0930.07319.48
5.4.400.0330.05718.81
5.4.390.0330.06018.69
5.4.380.0270.05018.48
5.4.370.0200.04718.78
5.4.360.0270.04318.68
5.4.350.0080.03312.02
5.4.340.0080.03412.02
5.4.320.0060.03612.50
5.4.310.0070.04512.50
5.4.300.0080.03412.50
5.4.290.0040.04412.50
5.4.280.0030.03912.39
5.4.270.0030.03812.39
5.4.260.0030.04112.39
5.4.250.0070.05318.78
5.4.240.0030.05318.95
5.4.230.0070.05718.98
5.4.220.0070.06318.89
5.4.210.0070.05318.96
5.4.200.0070.05018.64
5.4.190.0100.05018.78
5.4.180.0130.04719.08
5.4.170.0070.05318.66
5.4.160.0170.04318.97
5.4.150.0130.05018.97
5.4.140.0030.06316.57
5.4.130.0000.06316.47
5.4.120.0070.04716.40
5.4.110.0030.05316.52
5.4.100.0130.04016.53
5.4.90.0130.04316.67
5.4.80.0000.05316.53
5.4.70.0130.04716.45
5.4.60.0100.05016.38
5.4.50.0070.04716.30
5.4.40.0100.04316.49
5.4.30.0100.04716.38
5.4.20.0000.05716.50
5.4.10.0130.05716.49
5.4.00.0000.05315.78
5.3.290.0080.04012.80
5.3.280.0030.06014.59
5.3.270.0170.06014.68
5.3.260.0070.05314.69
5.3.250.0030.05714.61
5.3.240.0070.05014.59
5.3.230.0070.05014.68
5.3.220.0070.05014.73
5.3.210.0100.04714.72
5.3.200.0030.05314.57
5.3.190.0170.04014.63
5.3.180.0030.05314.56
5.3.170.0070.04714.56
5.3.160.0130.04314.74
5.3.150.0130.04314.46
5.3.140.0030.05714.73
5.3.130.0030.05714.61
5.3.120.0070.05014.71
5.3.110.0130.05014.63
5.3.100.0170.05714.00
5.3.90.0030.08313.92
5.3.80.0130.04714.03
5.3.70.0030.05314.11
5.3.60.0000.05713.98
5.3.50.0030.05014.11
5.3.40.0100.05313.96
5.3.30.0030.05313.98
5.3.20.0070.04713.77
5.3.10.0030.04713.63
5.3.00.0130.05313.71
5.2.170.0000.04311.13
5.2.160.0030.05311.25
5.2.150.0130.05011.13
5.2.140.0100.03711.13
5.2.130.0000.04311.05
5.2.120.0070.03711.02
5.2.110.0030.04011.16
5.2.100.0070.03711.26
5.2.90.0130.03011.18
5.2.80.0000.04311.17
5.2.70.0100.04711.17
5.2.60.0000.04710.95
5.2.50.0100.03311.10
5.2.40.0100.03711.07
5.2.30.0030.04011.03
5.2.20.0070.04010.86
5.2.10.0100.03010.68
5.2.00.0070.03710.80
5.1.60.0070.03010.15
5.1.50.0000.0379.96
5.1.40.0070.0309.98
5.1.30.0070.03310.29
5.1.20.0030.03710.33
5.1.10.0100.03010.22
5.1.00.0070.03310.02
5.0.50.0030.0278.52
5.0.40.0000.0308.32
5.0.30.0000.0438.29
5.0.20.0070.0238.28
5.0.10.0070.0408.23
5.0.00.0030.0478.20
4.4.90.0030.0205.87
4.4.80.0000.0235.84
4.4.70.0030.0205.90
4.4.60.0100.0135.74
4.4.50.0070.0175.86
4.4.40.0000.0335.94
4.4.30.0070.0175.94
4.4.20.0000.0335.94
4.4.10.0000.0235.94
4.4.00.0000.0335.94
4.3.110.0030.0205.94
4.3.100.0000.0235.94
4.3.90.0000.0205.94
4.3.80.0070.0305.94
4.3.70.0070.0235.94
4.3.60.0000.0235.94
4.3.50.0000.0235.94
4.3.40.0000.0335.94
4.3.30.0000.0235.94
4.3.20.0000.0235.94
4.3.10.0000.0305.94
4.3.00.0000.0337.84

preferences:
51.09 ms | 401 KiB | 5 Q