3v4l.org

run code in 300+ PHP versions simultaneously
<?php class My_Class { private static $CLASS_CONSTANT = 'test value'; public static function my_function() { $lambda_function = function() { echo self::$CLASS_CONSTANT; }; $lambda_function(); } public function start() { self::my_function(); } } $obj = new My_Class; $obj->start();

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.40.0070.00718.61
8.3.30.0090.00619.22
8.3.20.0000.00820.30
8.3.10.0050.00321.90
8.3.00.0060.00319.22
8.2.170.0040.01122.96
8.2.160.0040.01122.11
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0000.00819.66
8.2.110.0060.00321.04
8.2.100.0090.00317.57
8.2.90.0080.00020.46
8.2.80.0000.00817.97
8.2.70.0040.00417.80
8.2.60.0000.00818.22
8.2.50.0000.00818.10
8.2.40.0000.00719.30
8.2.30.0040.00419.13
8.2.20.0040.00417.69
8.2.10.0050.00218.05
8.2.00.0000.00817.74
8.1.270.0080.00018.83
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0130.00020.68
8.1.230.0110.00020.88
8.1.220.0040.00417.74
8.1.210.0030.00719.01
8.1.200.0000.00917.35
8.1.190.0080.00017.35
8.1.180.0060.00318.10
8.1.170.0040.00418.64
8.1.160.0040.00418.88
8.1.150.0040.00418.92
8.1.140.0050.00217.45
8.1.130.0000.00717.70
8.1.120.0030.00317.50
8.1.110.0000.00717.46
8.1.100.0040.00417.30
8.1.90.0030.00517.53
8.1.80.0070.00017.43
8.1.70.0030.00317.41
8.1.60.0000.01017.61
8.1.50.0000.00817.52
8.1.40.0030.00617.37
8.1.30.0000.00717.60
8.1.20.0000.00717.55
8.1.10.0000.00717.45
8.1.00.0040.00417.53
8.0.300.0000.00819.85
8.0.290.0040.00416.75
8.0.280.0070.00018.36
8.0.270.0050.00217.16
8.0.260.0070.00017.25
8.0.250.0050.00216.94
8.0.240.0030.00316.93
8.0.230.0000.00716.91
8.0.220.0040.00416.78
8.0.210.0080.00016.83
8.0.200.0060.00016.95
8.0.190.0030.00316.85
8.0.180.0040.00416.88
8.0.170.0020.00516.82
8.0.160.0030.00316.95
8.0.150.0000.00716.89
8.0.140.0040.00416.85
8.0.130.0050.00013.34
8.0.120.0050.00316.85
8.0.110.0000.00816.82
8.0.100.0080.00016.83
8.0.90.0000.00716.79
8.0.80.0030.01316.89
8.0.70.0000.00716.77
8.0.60.0000.00716.77
8.0.50.0070.00016.80
8.0.30.0060.01617.04
8.0.20.0100.01217.40
8.0.10.0000.00716.88
8.0.00.0150.00916.90
7.4.330.0060.00015.13
7.4.320.0060.00016.49
7.4.300.0060.00016.50
7.4.290.0030.00616.50
7.4.280.0060.00316.54
7.4.270.0000.00716.50
7.4.260.0050.00316.50
7.4.250.0030.00616.57
7.4.240.0060.00116.50
7.4.230.0000.00716.61
7.4.220.0130.01316.60
7.4.210.0060.00916.63
7.4.200.0030.00316.48
7.4.160.0090.00616.48
7.4.150.0090.00917.40
7.4.140.0060.01217.86
7.4.130.0110.00616.44
7.4.120.0060.01216.48
7.4.110.0110.01016.48
7.4.100.0100.00716.39
7.4.90.0100.00616.51
7.4.80.0110.01119.39
7.4.70.0070.01016.54
7.4.60.0030.01316.48
7.4.50.0000.00516.51
7.4.40.0090.01316.54
7.4.30.0070.01116.44
7.4.00.0030.01215.04
7.3.330.0050.00013.15
7.3.320.0050.00013.32
7.3.310.0000.00716.34
7.3.300.0030.00316.29
7.3.290.0070.00916.28
7.3.280.0070.01016.32
7.3.270.0070.01317.40
7.3.260.0160.00616.27
7.3.250.0150.00816.24
7.3.240.0040.01216.30
7.3.230.0120.00416.39
7.3.210.0100.00716.56
7.3.200.0030.01519.39
7.3.190.0100.00516.55
7.3.180.0120.00316.15
7.3.170.0060.01116.27
7.3.160.0120.00316.59
7.2.330.0100.00716.36
7.2.320.0070.01116.64
7.2.310.0070.01416.28
7.2.300.0070.01016.86
7.2.290.0070.01016.60
7.2.00.0030.00919.64
7.1.100.0030.00817.46
7.1.70.0130.00616.84
7.1.60.0100.01319.22
7.1.50.0030.01016.51
7.1.00.0130.06722.37
7.0.200.0000.00716.84
7.0.140.0000.07722.13
7.0.60.0130.06720.02
7.0.50.0100.07317.85
7.0.40.0030.04320.11
7.0.30.0230.08020.24
7.0.20.0330.07720.12
7.0.10.0130.08320.30
7.0.00.0070.08020.23
5.6.280.0000.07720.83
5.6.210.0200.06020.71
5.6.200.0100.08318.28
5.6.190.0100.07320.63
5.6.180.0300.07020.60
5.6.170.0330.07320.44
5.6.160.0000.04320.43
5.6.150.0130.07318.19
5.6.140.0000.04318.17
5.6.130.0030.05018.27
5.6.120.0130.06020.98
5.6.110.0030.04321.00
5.6.100.0130.06320.98
5.6.90.0130.07721.08
5.6.80.0130.04020.39
5.5.350.0130.03720.42
5.5.340.0100.07717.97
5.5.330.0070.05020.35
5.5.320.0230.08720.31
5.5.310.0300.06720.19
5.5.300.0100.06717.98
5.5.290.0030.05318.08
5.5.280.0070.07720.66
5.5.270.0000.06720.88
5.5.260.0070.06720.90
5.5.250.0000.08020.60
5.5.240.0070.07320.13
5.4.450.0300.05319.30
5.4.440.0630.06319.39
5.4.430.0600.05719.45
5.4.420.0270.05319.55
5.4.410.0870.06019.29
5.4.400.0630.06319.26
5.4.390.0130.05018.84
5.4.380.0270.05018.48
5.4.370.0300.04318.78
5.4.360.0370.07318.52
5.4.350.0230.05018.61
5.4.340.0200.05718.63
5.4.320.0270.04718.74
5.4.310.0130.06018.63
5.4.300.0170.06018.78
5.4.290.0230.04718.71
5.4.280.0300.04718.47
5.4.270.0230.06718.77
5.4.260.0270.05018.52
5.4.250.0200.05718.82
5.4.240.0170.05718.82
5.4.230.0170.05318.67
5.4.220.0270.05018.75
5.4.210.0200.05018.75
5.4.200.0130.06016.57
5.4.190.0200.05318.66
5.4.180.0200.05318.73
5.4.170.0330.04318.62
5.4.160.0230.05018.68
5.4.150.0270.04718.74
5.4.140.0370.05716.29
5.4.130.0230.04316.27
5.4.120.0230.04316.19
5.4.110.0130.05716.25
5.4.100.0130.05716.17
5.4.90.0200.05316.32
5.4.80.0330.03716.43
5.4.70.0200.05016.29
5.4.60.0230.04316.17
5.4.50.0130.05016.24
5.4.40.0100.05716.27
5.4.30.0070.06016.27
5.4.20.0230.06016.29
5.4.10.0100.06016.39
5.4.00.0230.05315.75
5.3.290.0300.04314.74
5.3.280.0230.06314.65
5.3.270.0270.05714.60
5.3.260.0270.06014.61
5.3.250.0170.05314.71
5.3.240.0200.05014.79
5.3.230.0230.04714.82
5.3.220.0170.05714.55
5.3.210.0230.05014.77
5.3.200.0100.06314.78
5.3.190.0230.05314.79
5.3.180.0330.06014.69
5.3.170.0330.04014.61
5.3.160.0200.05314.67
5.3.150.0270.05714.75
5.3.140.0230.05014.78
5.3.130.0230.07714.58
5.3.120.0270.05014.77
5.3.110.0200.05314.53
5.3.100.0130.06014.09
5.3.90.0170.05314.07
5.3.80.0300.04314.10
5.3.70.0270.04314.07
5.3.60.0200.05014.01
5.3.50.0270.04714.17
5.3.40.0100.06013.99
5.3.30.0270.04014.03
5.3.20.0270.04713.68
5.3.10.0230.04313.68
5.3.00.0200.04713.76
5.2.170.0200.03711.17
5.2.160.0170.04011.19
5.2.150.0130.04711.29
5.2.140.0130.04311.13
5.2.130.0200.04011.09
5.2.120.0130.04311.30
5.2.110.0130.05011.21
5.2.100.0200.03711.17
5.2.90.0130.04311.21
5.2.80.0130.05011.18
5.2.70.0170.04011.30
5.2.60.0070.05011.25
5.2.50.0170.04011.01
5.2.40.0170.03711.02
5.2.30.0170.03711.07
5.2.20.0070.04310.99
5.2.10.0070.04311.08
5.2.00.0170.03710.91
5.1.60.0230.02710.13
5.1.50.0130.04010.18
5.1.40.0100.03710.09
5.1.30.0130.03310.46
5.1.20.0100.03710.57
5.1.10.0100.03710.18
5.1.00.0100.03710.25
5.0.50.0070.0308.73
5.0.40.0070.0308.54
5.0.30.0070.0438.34
5.0.20.0130.0238.40
5.0.10.0170.0208.36
5.0.00.0130.0378.18
4.4.90.0030.0235.90
4.4.80.0070.0235.91
4.4.70.0030.0275.90
4.4.60.0030.0235.88
4.4.50.0030.0235.89
4.4.40.0030.0475.93
4.4.30.0100.0236.00
4.4.20.0070.0205.99
4.4.10.0030.0275.99
4.4.00.0170.0235.89
4.3.110.0030.0235.82
4.3.100.0030.0235.81
4.3.90.0100.0175.80
4.3.80.0100.0305.78
4.3.70.0030.0235.79
4.3.60.0100.0175.82
4.3.50.0030.0275.89
4.3.40.0030.0375.77
4.3.30.0100.0204.88
4.3.20.0000.0274.88
4.3.10.0070.0204.88
4.3.00.0070.0207.60

preferences:
44.09 ms | 400 KiB | 5 Q