3v4l.org

run code in 300+ PHP versions simultaneously
<?php class My_Class { protected static $output = 'test'; public static function method() { return function() { echo static::$output; }; } } $object = new My_Class; $function = $object->method(); $function();

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.5.30.0090.00819.52
8.5.20.0090.00919.64
8.5.10.0120.00816.62
8.5.00.0110.01119.71
8.4.180.0110.01319.73
8.4.170.0120.01023.63
8.4.160.0140.00823.06
8.4.150.0080.00416.80
8.4.140.0160.01017.54
8.4.130.0030.00619.61
8.4.120.0110.00822.18
8.4.110.0090.00222.12
8.4.100.0130.00817.68
8.4.90.0070.00417.67
8.4.80.0100.00520.74
8.4.70.0150.00517.84
8.4.60.0140.00618.84
8.4.50.0140.00817.75
8.4.40.0160.00719.25
8.4.30.0160.00317.63
8.4.20.0070.01420.35
8.4.10.0080.01120.32
8.3.300.0100.01120.75
8.3.290.0130.00720.80
8.3.280.0120.00918.33
8.3.270.0130.00716.52
8.3.260.0030.00516.37
8.3.250.0120.00619.06
8.3.240.0150.00616.64
8.3.230.0120.00816.24
8.3.220.0070.00817.09
8.3.210.0120.00416.53
8.3.200.0150.00216.60
8.3.190.0090.01118.36
8.3.180.0100.00916.66
8.3.170.0110.00716.64
8.3.160.0130.00616.50
8.3.150.0080.01116.76
8.3.140.0110.00316.41
8.3.130.0040.00416.69
8.3.120.0060.00918.78
8.3.110.0090.00920.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0070.00317.97
8.3.70.0100.00716.50
8.3.60.0120.00918.52
8.3.50.0150.00417.44
8.3.40.0100.00718.71
8.3.30.0100.01018.54
8.3.20.0040.00421.82
8.3.10.0000.00820.45
8.3.00.0060.00617.38
8.2.300.0110.00920.46
8.2.290.0110.00820.61
8.2.280.0100.00718.30
8.2.270.0180.00016.88
8.2.260.0150.00019.00
8.2.250.0030.00518.46
8.2.240.0030.00518.77
8.2.230.0090.00022.58
8.2.220.0060.00637.54
8.2.210.0030.00726.77
8.2.200.0080.00016.63
8.2.190.0130.00316.58
8.2.180.0110.00718.42
8.2.170.0090.00622.96
8.2.160.0070.00720.45
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0060.00317.97
8.2.120.0040.00426.35
8.2.110.0100.00022.27
8.2.100.0060.00618.09
8.2.90.0050.00317.63
8.2.80.0080.00017.97
8.2.70.0040.00417.80
8.2.60.0040.00418.22
8.2.50.0060.00318.10
8.2.40.0040.00419.33
8.2.30.0040.00419.18
8.2.20.0050.00318.00
8.2.10.0050.00319.37
8.2.00.0000.00717.98
8.1.340.0110.00817.46
8.1.330.0070.00316.57
8.1.320.0110.00916.02
8.1.310.0140.00418.35
8.1.300.0060.01315.95
8.1.290.0000.00930.84
8.1.280.0030.01325.92
8.1.270.0040.00420.25
8.1.260.0000.00726.35
8.1.250.0060.00328.09
8.1.240.0090.00022.27
8.1.230.0040.00719.17
8.1.220.0090.00017.76
8.1.210.0040.00418.77
8.1.200.0030.00717.22
8.1.190.0050.00317.35
8.1.180.0050.00318.10
8.1.170.0040.00418.65
8.1.160.0040.00418.95
8.1.150.0040.00418.80
8.1.140.0000.00818.73
8.1.130.0030.00320.15
8.1.120.0070.00017.43
8.1.110.0040.00417.36
8.1.100.0040.00417.36
8.1.90.0080.00017.44
8.1.80.0070.00017.39
8.1.70.0070.00017.43
8.1.60.0050.00317.63
8.1.50.0080.00017.40
8.1.40.0080.00017.38
8.1.30.0000.00817.66
8.1.20.0030.00617.60
8.1.10.0000.00717.57
8.1.00.0000.00817.50
8.0.300.0040.00419.79
8.0.290.0000.00816.63
8.0.280.0070.00018.50
8.0.270.0000.00717.26
8.0.260.0060.00018.48
8.0.250.0030.00516.96
8.0.240.0030.00516.97
8.0.230.0040.00716.82
8.0.220.0070.00016.83
8.0.210.0000.00716.78
8.0.200.0040.00416.84
8.0.190.0110.00016.91
8.0.180.0080.00016.98
8.0.170.0030.00616.82
8.0.160.0030.00316.88
8.0.150.0070.00016.86
8.0.140.0030.00416.84
8.0.130.0000.00613.40
8.0.120.0000.00716.86
8.0.110.0000.00816.95
8.0.100.0040.00416.80
8.0.90.0050.00216.93
8.0.80.0070.00916.80
8.0.70.0040.00416.93
8.0.60.0000.00716.93
8.0.50.0070.00016.95
8.0.30.0090.00917.20
8.0.20.0160.01317.09
8.0.10.0040.00416.82
8.0.00.0070.01316.69
7.4.330.0030.00315.55
7.4.320.0000.00816.52
7.4.300.0030.00316.41
7.4.290.0000.00716.58
7.4.280.0080.00016.57
7.4.270.0070.00016.60
7.4.260.0000.00816.48
7.4.250.0080.00016.55
7.4.240.0050.00516.41
7.4.230.0030.00316.60
7.4.220.0000.00716.25
7.4.210.0100.00616.49
7.4.200.0050.00216.71
7.4.160.0090.00916.43
7.4.140.0090.00817.86
7.4.130.0130.00616.51
7.4.120.0090.01216.54
7.4.110.0070.01416.62
7.4.100.0130.01016.52
7.4.90.0090.00616.52
7.4.80.0160.00619.39
7.4.70.0090.00716.48
7.4.60.0140.00416.42
7.4.50.0090.00616.20
7.4.40.0080.00816.25
7.4.00.0060.01114.90
7.3.330.0050.00013.11
7.3.320.0000.00513.25
7.3.310.0000.00816.35
7.3.300.0030.00316.30
7.3.290.0030.00316.16
7.3.280.0070.01016.24
7.3.260.0120.00716.39
7.3.240.0100.00816.36
7.3.230.0120.00916.26
7.3.210.0030.01616.20
7.3.200.0090.00916.35
7.3.190.0120.00916.55
7.3.180.0130.00316.27
7.3.170.0080.00816.29
7.3.160.0040.01316.58
7.3.120.0000.01714.96
7.3.110.0100.00714.67
7.3.100.0050.00914.95
7.3.90.0070.00914.74
7.3.80.0060.00914.71
7.3.70.0080.00614.58
7.3.60.0080.00614.79
7.3.50.0070.00914.69
7.3.40.0080.00914.76
7.3.30.0070.00714.80
7.3.20.0190.00515.27
7.3.10.0180.00915.28
7.3.00.0200.00715.29
7.2.330.0090.00916.46
7.2.320.0150.00316.86
7.2.310.0060.01816.80
7.2.300.0070.01016.63
7.2.290.0130.00716.68
7.2.250.0060.00614.73
7.2.240.0060.01015.09
7.2.230.0050.00814.95
7.2.220.0070.00915.05
7.2.210.0090.00514.96
7.2.200.0020.01414.82
7.2.190.0070.00914.94
7.2.180.0070.00515.00
7.2.170.0130.00514.88
7.2.160.0000.01515.08
7.2.150.0080.00615.10
7.2.140.0260.00914.80
7.2.130.0180.01115.04
7.2.120.0220.00614.97
7.2.110.0250.00314.98
7.2.100.0260.01114.81
7.2.90.0280.00615.04
7.2.80.0260.00615.01
7.2.70.0290.00515.12
7.2.60.0210.01115.05
7.2.50.0200.00914.97
7.2.40.0260.00615.12
7.2.30.0260.00815.18
7.2.20.0240.00515.18
7.2.10.0260.00415.12
7.2.00.0330.00215.18
7.1.330.0060.00814.75
7.1.320.0050.01014.77
7.1.310.0060.00614.85
7.1.300.0080.00814.70
7.1.290.0070.00914.77
7.1.280.0060.01214.62
7.1.270.0100.00414.79
7.1.260.0050.00614.53
7.1.250.0270.00513.69

preferences:
46.34 ms | 1484 KiB | 5 Q