3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function blah() { $foo = function(){ var_dump(get_called_class()); }; $foo(); } } class Bar extends Foo { } Bar::blah();

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.0040.01116.50
8.3.50.0180.00322.04
8.3.40.0140.00318.54
8.3.30.0040.01119.04
8.3.20.0030.00520.30
8.3.10.0050.00323.66
8.3.00.0050.00319.26
8.2.180.0140.00418.29
8.2.170.0110.00322.96
8.2.160.0070.00720.43
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0120.00326.16
8.2.120.0070.00022.13
8.2.110.0070.01421.15
8.2.100.0060.00617.91
8.2.90.0040.00419.02
8.2.80.0050.00317.97
8.2.70.0030.00617.63
8.2.60.0030.00718.05
8.2.50.0090.00018.10
8.2.40.0050.00318.19
8.2.30.0050.00318.10
8.2.20.0040.00417.64
8.2.10.0000.00718.16
8.2.00.0030.00617.79
8.1.280.0100.01025.92
8.1.270.0000.01423.83
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0150.00621.29
8.1.230.0080.00417.71
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0080.00318.41
8.1.160.0020.00522.00
8.1.150.0000.00818.54
8.1.140.0080.00017.46
8.1.130.0000.00717.88
8.1.120.0030.00417.43
8.1.110.0050.00217.37
8.1.100.0000.00717.47
8.1.90.0070.00017.38
8.1.80.0000.00717.45
8.1.70.0000.00717.32
8.1.60.0070.00317.44
8.1.50.0000.00817.50
8.1.40.0040.00417.46
8.1.30.0000.00817.45
8.1.20.0000.00817.63
8.1.10.0020.00517.57
8.1.00.0040.00417.52
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0050.00318.43
8.0.270.0050.00217.18
8.0.260.0000.00616.79
8.0.250.0020.00516.80
8.0.240.0000.00716.78
8.0.230.0060.00316.79
8.0.220.0070.00016.82
8.0.210.0030.00316.74
8.0.200.0090.00016.89
8.0.190.0000.00816.85
8.0.180.0030.00316.90
8.0.170.0000.00716.77
8.0.160.0000.00716.83
8.0.150.0000.00716.86
8.0.140.0030.00616.80
8.0.130.0030.00313.28
8.0.120.0030.00516.87
8.0.110.0040.00416.93
8.0.100.0000.00716.75
8.0.90.0040.00417.00
8.0.80.0110.00816.82
8.0.70.0080.00016.79
8.0.60.0050.00316.70
8.0.50.0030.00316.82
8.0.30.0100.00917.20
8.0.20.0050.01517.40
8.0.10.0040.00416.81
8.0.00.0120.00916.75
7.4.330.0050.00015.15
7.4.320.0000.00616.46
7.4.300.0000.00616.50
7.4.290.0050.00316.39
7.4.280.0030.00316.44
7.4.270.0000.00716.58
7.4.260.0030.00316.47
7.4.250.0080.00016.49
7.4.240.0070.00016.52
7.4.230.0000.00716.62
7.4.220.0120.00616.68
7.4.210.0050.00916.58
7.4.200.0000.00816.59
7.4.190.0070.00016.68
7.4.160.0130.00616.59
7.4.150.0040.01317.40
7.4.140.0110.00917.86
7.4.130.0050.01416.49
7.4.120.0100.01316.48
7.4.110.0150.00616.62
7.4.100.0060.01216.61
7.4.90.0090.00916.34
7.4.80.0090.00919.39
7.4.70.0170.00616.56
7.4.60.0070.01016.54
7.4.50.0000.00416.54
7.4.40.0080.00822.77
7.4.30.0090.00616.45
7.4.00.0080.00914.90
7.3.330.0000.00613.25
7.3.320.0030.00313.24
7.3.310.0030.00316.34
7.3.300.0030.00316.20
7.3.290.0090.00616.26
7.3.280.0060.01216.27
7.3.270.0070.01117.40
7.3.260.0120.01516.29
7.3.250.0120.00516.50
7.3.240.0060.01116.30
7.3.230.0100.01316.42
7.3.210.0100.00616.59
7.3.200.0090.01219.39
7.3.190.0070.01416.49
7.3.180.0090.00616.33
7.3.170.0080.00816.37
7.3.160.0090.00616.25
7.3.120.0020.01514.83
7.3.110.0080.00814.84
7.3.100.0070.00714.74
7.3.90.0080.00214.71
7.3.80.0080.00414.64
7.3.70.0070.00514.71
7.3.60.0070.00814.51
7.3.50.0030.00914.55
7.3.40.0050.00714.68
7.3.30.0030.01214.76
7.3.20.0110.00516.49
7.3.10.0100.00716.43
7.3.00.0050.00716.51
7.2.330.0070.01116.53
7.2.320.0180.02216.65
7.2.310.0030.01416.44
7.2.300.0130.00316.59
7.2.290.0070.01016.62
7.2.250.0070.01214.82
7.2.240.0050.01014.89
7.2.230.0030.01314.93
7.2.220.0100.00514.65
7.2.210.0040.01214.67
7.2.200.0060.00514.96
7.2.190.0060.00814.84
7.2.180.0000.01314.94
7.2.170.0050.00814.76
7.2.00.0060.00619.24
7.1.330.0050.00715.80
7.1.320.0060.00815.83
7.1.310.0070.00515.60
7.1.300.0080.00815.56
7.1.290.0060.00715.67
7.1.280.0020.01415.53
7.1.270.0080.00715.65
7.1.260.0080.00615.57
7.1.100.0040.00818.23
7.1.70.0040.00416.96
7.1.60.0110.00419.33
7.1.50.0030.01016.92
7.1.00.0070.07322.45
7.0.200.0000.00916.60
7.0.140.0100.06722.15
7.0.60.0130.06319.90
7.0.50.0100.08017.82
7.0.40.0170.06320.40
7.0.30.0270.03320.11
7.0.20.0300.07720.09
7.0.10.0130.07320.33
7.0.00.0100.03720.05
5.6.280.0030.07021.13
5.6.210.0070.07720.65
5.6.200.0030.06018.16
5.6.190.0070.07020.46
5.6.180.0470.05320.39
5.6.170.0230.04020.51
5.6.160.0030.06720.46
5.6.150.0130.07318.18
5.6.140.0030.05018.25
5.6.130.0030.04018.21
5.6.120.0100.07721.02
5.6.110.0070.08320.89
5.6.100.0000.07021.05
5.6.90.0070.06720.98
5.6.80.0100.08020.41
5.5.350.0330.06320.41
5.5.340.0030.04718.04
5.5.330.0030.07020.47
5.5.320.0300.08320.20
5.5.310.0330.07320.42
5.5.300.0130.07318.07
5.5.290.0100.07717.96
5.5.280.0000.05720.88
5.5.270.0030.07720.89
5.5.260.0200.06720.89
5.5.250.0030.07020.58
5.5.240.0070.08020.19
5.4.450.0670.06019.19
5.4.440.0800.05319.58
5.4.430.0670.06019.59
5.4.420.0870.05319.69
5.4.410.0100.05018.97
5.4.400.0400.06718.85
5.4.390.0470.06318.59
5.4.380.0070.05718.53
5.4.370.0030.04018.63
5.4.360.0070.03718.79
5.4.350.0070.03812.02
5.4.340.0060.03812.02
5.4.320.0060.04112.50
5.4.310.0060.04612.50
5.4.300.0050.04012.51
5.4.290.0100.03912.50
5.4.280.0130.04812.37
5.4.270.0100.04312.37
5.4.260.0140.05212.37
5.4.250.0110.06412.37
5.4.240.0090.04612.37
5.4.230.0100.04712.36
5.4.220.0090.05212.36
5.4.210.0100.04912.37
5.4.200.0080.06112.37
5.4.190.0120.05012.36
5.4.180.0100.05112.36
5.4.170.0110.04812.38
5.4.160.0060.03912.36
5.4.150.0070.03812.37
5.4.140.0070.04312.05
5.4.130.0070.04312.04
5.4.120.0080.05412.00
5.4.110.0050.05311.99
5.4.100.0090.04411.99
5.4.90.0080.04811.99
5.4.80.0100.04911.99
5.4.70.0110.04511.98
5.4.60.0080.03811.99
5.4.50.0080.04611.99
5.4.40.0110.04511.98
5.4.30.0080.05111.97
5.4.20.0060.04011.97
5.4.10.0100.03211.97
5.4.00.0050.03711.46
5.3.290.0020.05012.80
5.3.280.0100.03512.71
5.3.270.0070.03912.72
5.3.260.0100.03712.72
5.3.250.0090.04512.72
5.3.240.0110.03912.72
5.3.230.0050.05412.71
5.3.220.0080.05412.68
5.3.210.0060.03912.68
5.3.200.0080.04512.68
5.3.190.0070.04112.68
5.3.180.0060.04512.68
5.3.170.0100.03412.67
5.3.160.0040.03912.68
5.3.150.0060.03912.67
5.3.140.0060.04012.66
5.3.130.0060.04112.66
5.3.120.0100.03712.66
5.3.110.0080.04612.66
5.3.100.0070.03912.12
5.3.90.0050.03812.09
5.3.80.0080.03712.07
5.3.70.0100.03512.07
5.3.60.0070.03712.07
5.3.50.0070.03712.00
5.3.40.0060.04112.00
5.3.30.0120.03811.95
5.3.20.0070.03611.75
5.3.10.0070.04411.70
5.3.00.0090.04111.70
5.2.170.0090.0369.18
5.2.160.0060.0289.19
5.2.150.0020.0349.19
5.2.140.0030.0339.18
5.2.130.0050.0359.14
5.2.120.0080.0319.14
5.2.110.0030.0319.14
5.2.100.0060.0289.15
5.2.90.0060.0399.14
5.2.80.0040.0319.14
5.2.70.0070.0319.14
5.2.60.0080.0299.10
5.2.50.0030.0339.07
5.2.40.0090.0309.04
5.2.30.0040.0479.01
5.2.20.0030.0379.00
5.2.10.0050.0288.92
5.2.00.0040.0368.78
5.1.60.0060.0298.07
5.1.50.0060.0248.07
5.1.40.0040.0258.05
5.1.30.0070.0318.39
5.1.20.0060.0338.41
5.1.10.0080.0338.14
5.1.00.0060.0318.14
5.0.50.0020.0246.61
5.0.40.0070.0166.48
5.0.30.0070.0376.29
5.0.20.0040.0196.26
5.0.10.0030.0216.23
5.0.00.0040.0386.22
4.4.90.0040.0164.78
4.4.80.0030.0184.76
4.4.70.0030.0224.75
4.4.60.0010.0214.75
4.4.50.0050.0134.77
4.4.40.0030.0324.71
4.4.30.0050.0144.76
4.4.20.0090.0164.85
4.4.10.0050.0134.85
4.4.00.0030.0324.75
4.3.110.0020.0164.67
4.3.100.0030.0204.66
4.3.90.0030.0174.63
4.3.80.0040.0314.58
4.3.70.0030.0194.63
4.3.60.0030.0184.63
4.3.50.0030.0224.63
4.3.40.0050.0414.54
4.3.30.0010.0173.28
4.3.20.0030.0163.27
4.3.10.0020.0183.23
4.3.00.0100.0308.54

preferences:
45.46 ms | 401 KiB | 5 Q