3v4l.org

run code in 300+ PHP versions simultaneously
<?php class stuff { public static function test2() { echo 'hi'; } public function test() { $this::test2(); } } class stuff2 extends stuff { public static function test2() { echo 'hello'; } } $a = new stuff(); $a->test();

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.0170.00016.50
8.3.50.0110.00821.21
8.3.40.0040.01118.71
8.3.30.0110.00319.10
8.3.20.0040.00420.27
8.3.10.0070.00021.79
8.3.00.0030.00519.13
8.2.180.0070.00718.18
8.2.170.0090.00622.96
8.2.160.0130.00020.35
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0060.01326.16
8.2.120.0040.00422.27
8.2.110.0030.00622.25
8.2.100.0070.00417.78
8.2.90.0060.00319.05
8.2.80.0050.00217.97
8.2.70.0040.00417.50
8.2.60.0040.00417.92
8.2.50.0040.00418.07
8.2.40.0070.00319.95
8.2.30.0050.00217.89
8.2.20.0030.00617.49
8.2.10.0000.00717.93
8.2.00.0000.01017.48
8.1.280.0030.01025.92
8.1.270.0040.00423.85
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00023.72
8.1.230.0080.00319.08
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0040.00417.53
8.1.180.0040.00418.10
8.1.170.0080.00018.50
8.1.160.0020.00521.82
8.1.150.0070.00018.53
8.1.140.0030.00517.42
8.1.130.0030.00317.73
8.1.120.0050.00317.30
8.1.110.0000.00717.27
8.1.100.0040.00417.38
8.1.90.0070.00317.39
8.1.80.0060.00317.38
8.1.70.0000.00717.36
8.1.60.0040.00417.57
8.1.50.0000.00817.50
8.1.40.0040.00417.46
8.1.30.0070.00017.44
8.1.20.0050.00317.57
8.1.10.0000.00817.53
8.1.00.0050.00217.35
8.0.300.0000.00820.71
8.0.290.0050.00217.05
8.0.280.0000.00718.34
8.0.270.0040.00417.21
8.0.260.0070.00017.24
8.0.250.0030.00316.95
8.0.240.0040.00416.79
8.0.230.0030.00316.80
8.0.220.0060.00016.73
8.0.210.0030.00316.68
8.0.200.0000.00616.87
8.0.190.0070.00016.89
8.0.180.0070.00316.75
8.0.170.0040.00416.84
8.0.160.0040.00416.82
8.0.150.0040.00416.80
8.0.140.0000.00816.75
8.0.130.0030.00313.24
8.0.120.0070.00016.82
8.0.110.0040.00416.70
8.0.100.0070.00016.70
8.0.90.0000.00716.62
8.0.80.0030.01316.73
8.0.70.0000.00716.88
8.0.60.0000.00816.93
8.0.50.0000.00716.78
8.0.30.0070.01317.09
8.0.20.0110.00817.40
8.0.10.0030.00516.89
8.0.00.0110.00616.74
7.4.330.0020.00215.00
7.4.320.0000.00616.38
7.4.300.0060.00016.35
7.4.290.0060.00016.63
7.4.280.0040.00416.48
7.4.270.0070.00016.58
7.4.260.0000.00716.49
7.4.250.0040.00416.45
7.4.240.0040.00416.62
7.4.230.0060.00016.32
7.4.220.0070.01016.61
7.4.210.0080.00816.58
7.4.200.0030.00316.39
7.4.190.0000.00716.55
7.4.160.0090.00616.36
7.4.150.0070.01117.40
7.4.140.0100.00717.86
7.4.130.0110.00716.28
7.4.120.0130.00616.53
7.4.110.0110.00716.54
7.4.100.0040.01316.61
7.4.90.0090.00916.50
7.4.80.0130.00319.39
7.4.70.0170.00016.51
7.4.60.0060.01216.63
7.4.50.0080.00016.49
7.4.40.0040.01122.77
7.4.30.0120.00616.55
7.4.00.0120.00614.92
7.3.330.0050.00013.25
7.3.320.0000.00513.27
7.3.310.0070.00016.14
7.3.300.0060.00016.21
7.3.290.0130.00616.22
7.3.280.0130.00516.23
7.3.270.0110.00617.40
7.3.260.0060.01216.31
7.3.250.0130.00516.38
7.3.240.0140.00316.46
7.3.230.0040.01216.47
7.3.210.0130.00316.22
7.3.200.0100.00716.26
7.3.190.0160.00416.25
7.3.180.0130.00316.43
7.3.170.0040.01216.45
7.3.160.0050.01916.43
7.3.120.0090.00714.93
7.3.110.0090.00714.83
7.3.100.0100.00714.65
7.3.90.0050.01114.53
7.3.80.0070.00814.64
7.3.70.0050.00814.83
7.3.60.0100.00314.67
7.3.50.0080.01014.73
7.3.40.0050.00914.75
7.3.30.0040.00814.70
7.3.20.0040.00916.50
7.3.10.0070.00716.53
7.3.00.0050.00616.54
7.2.330.0030.01516.78
7.2.320.0100.00716.79
7.2.310.0000.01616.59
7.2.300.0120.00416.78
7.2.290.0060.01016.41
7.2.250.0050.01314.84
7.2.240.0100.01015.05
7.2.230.0050.01415.10
7.2.220.0080.00715.00
7.2.210.0000.01514.87
7.2.200.0060.00815.10
7.2.190.0020.01114.86
7.2.180.0070.00714.91
7.2.170.0040.00814.94
7.2.160.0080.00514.81
7.2.150.0120.00316.64
7.2.140.0030.00716.65
7.2.130.0100.00816.79
7.2.120.0070.00816.73
7.2.110.0070.00516.95
7.2.100.0060.00916.78
7.2.90.0010.00916.82
7.2.80.0050.00916.80
7.2.70.0030.00816.81
7.2.60.0020.00816.65
7.2.50.0040.00916.78
7.2.40.0040.01016.85
7.2.30.0130.00316.62
7.2.20.0030.00816.94
7.2.10.0100.00516.81
7.2.00.0050.00717.80
7.1.330.0020.01315.63
7.1.320.0040.00715.66
7.1.310.0110.00515.75
7.1.300.0070.00915.63
7.1.290.0050.00915.81
7.1.280.0050.01215.71
7.1.270.0020.01115.74
7.1.260.0070.00715.72
7.1.250.0100.00515.49
7.1.200.0150.00415.54
7.1.100.0000.00918.11
7.1.70.0040.01116.80
7.1.60.0170.00719.46
7.1.50.0120.00916.80
7.1.00.0000.07722.51
7.0.200.0060.00316.55
7.0.140.0000.07722.07
7.0.60.0100.06319.88
7.0.50.0100.06317.88
7.0.40.0130.06020.09
7.0.30.0230.06720.21
7.0.20.0370.07720.30
7.0.10.0070.08720.16
7.0.00.0070.08020.23
5.6.280.0070.07021.13
5.6.210.0030.07720.51
5.6.200.0030.05018.15
5.6.190.0170.04720.34
5.6.180.0300.07320.50
5.6.170.0230.04320.56
5.6.160.0130.07320.55
5.6.150.0030.04718.12
5.6.140.0100.07718.12
5.6.130.0130.07318.18
5.6.120.0100.09020.90
5.6.110.0030.07321.03
5.6.100.0130.07321.01
5.6.90.0170.04720.97
5.6.80.0070.08020.41
5.5.350.0030.07320.41
5.5.340.0100.08017.98
5.5.330.0030.04020.25
5.5.320.0270.04020.42
5.5.310.0170.05320.36
5.5.300.0070.06317.96
5.5.290.0100.07717.95
5.5.280.0030.08320.73
5.5.270.0070.06720.96
5.5.260.0100.06720.80
5.5.250.0230.06720.70
5.5.240.0170.03720.19
5.4.450.0030.04319.55
5.4.440.0000.04019.46
5.4.430.0000.04319.30
5.4.420.0000.04019.55
5.4.410.0000.03719.39
5.4.400.0030.03319.32
5.4.390.0000.03718.86
5.4.380.0000.04019.05
5.4.370.0030.03319.20
5.4.360.0030.03719.13
5.4.350.0000.04019.21
5.4.340.0000.03719.19
5.4.320.0000.03719.30
5.4.310.0030.03319.06
5.4.300.0000.03719.05
5.4.290.0070.03018.86
5.4.280.0000.03719.13
5.4.270.0030.03719.23
5.4.260.0030.03319.15
5.4.250.0000.04718.96
5.4.240.0000.04019.30
5.4.230.0100.06719.05
5.4.220.0070.04019.12
5.4.210.0070.07318.98
5.4.200.0030.07719.14
5.4.190.0000.07719.12
5.4.180.0000.06718.84
5.4.170.0070.07319.22
5.4.160.0000.05319.11
5.4.150.0000.07318.97
5.4.140.0000.04016.51
5.4.130.0030.07016.58
5.4.120.0030.03716.56
5.4.110.0000.04716.26
5.4.100.0030.04716.63
5.4.90.0030.05316.58
5.4.80.0000.04016.57
5.4.70.0030.04316.31
5.4.60.0070.03316.51
5.4.50.0030.04316.55
5.4.40.0030.03316.24
5.4.30.0100.06716.52
5.4.20.0030.04316.53
5.4.10.0000.05016.23
5.4.00.0070.03315.95
5.3.290.0030.03314.71
5.3.280.0000.05014.61
5.3.270.0130.04314.50
5.3.260.0030.07714.51
5.3.250.0000.07314.60
5.3.240.0030.07314.61
5.3.230.0000.05014.51
5.3.220.0000.04014.61
5.3.210.0030.03714.65
5.3.200.0030.07314.66
5.3.190.0000.04714.72
5.3.180.0000.03714.71
5.3.170.0000.04014.72
5.3.160.0000.04014.57
5.3.150.0000.04014.64
5.3.140.0000.03714.54
5.3.130.0000.04314.57
5.3.120.0100.04014.62
5.3.110.0000.05014.70
5.3.100.0000.04014.11
5.3.90.0000.06713.93
5.3.80.0070.06713.95
5.3.70.0000.04713.93
5.3.60.0000.07014.01
5.3.50.0100.06313.95
5.3.40.0070.03713.96
5.3.30.0000.06013.82
5.3.20.0030.03313.76
5.3.10.0000.06713.76
5.3.00.0000.05013.76
5.2.170.0030.05713.76
5.2.160.0070.03713.76
5.2.150.0070.05013.76
5.2.140.0070.05713.76
5.2.130.0000.03013.76
5.2.120.0030.03313.76
5.2.110.0030.03713.76
5.2.100.0000.06313.76
5.2.90.0000.04013.76
5.2.80.0000.03713.76
5.2.70.0000.03013.76
5.2.60.0000.04313.76
5.2.50.0000.03713.76
5.2.40.0030.04013.76
5.2.30.0000.03313.76
5.2.20.0030.06013.76
5.2.10.0030.03713.76
5.2.00.0070.06013.76
5.1.60.0100.03713.76
5.1.50.0030.05313.76
5.1.40.0000.03313.76
5.1.30.0070.04313.76
5.1.20.0030.05313.76
5.1.10.0030.02313.76
5.1.00.0030.05713.76
5.0.50.0000.03713.76
5.0.40.0000.05013.76
5.0.30.0000.05713.76
5.0.20.0000.02313.76
5.0.10.0000.02013.76
5.0.00.0000.06713.76
4.4.90.0030.01713.76
4.4.80.0000.02013.76
4.4.70.0000.02313.76
4.4.60.0030.02013.76
4.4.50.0030.01713.76
4.4.40.0000.04713.76
4.4.30.0030.02013.76
4.4.20.0000.02013.76
4.4.10.0000.03713.76
4.4.00.0000.05713.76
4.3.110.0000.02713.76
4.3.100.0000.02013.76
4.3.90.0030.02713.76
4.3.80.0000.02713.76
4.3.70.0000.02713.76
4.3.60.0030.03313.76
4.3.50.0030.02013.76
4.3.40.0030.02013.76
4.3.30.0000.01713.76
4.3.20.0000.01713.76
4.3.10.0000.01713.76
4.3.00.0030.02713.76

preferences:
45.15 ms | 401 KiB | 5 Q