3v4l.org

run code in 300+ PHP versions simultaneously
<?php class My_Class { protected static $output = 'test'; public static function method() { return function() { echo self::$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.0070.01019.23
8.5.20.0110.00719.47
8.5.10.0090.00916.55
8.5.00.0140.00719.85
8.4.180.0110.01222.05
8.4.170.0090.01420.29
8.4.160.0140.00820.43
8.4.150.0070.00617.72
8.4.140.0170.00517.36
8.4.130.0100.01018.83
8.4.120.0140.00620.84
8.4.110.0110.00918.89
8.4.100.0120.00818.68
8.4.90.0100.00818.71
8.4.80.0090.00919.57
8.4.70.0050.00417.77
8.4.60.0130.00818.64
8.4.50.0070.01320.29
8.4.40.0090.00919.24
8.4.30.0070.01317.61
8.4.20.0120.00920.56
8.4.10.0090.00620.36
8.3.300.0140.00720.70
8.3.290.0140.00720.72
8.3.280.0130.00718.31
8.3.270.0120.00816.64
8.3.260.0090.01016.30
8.3.250.0040.00517.18
8.3.240.0100.00816.54
8.3.230.0110.00716.63
8.3.220.0080.00417.19
8.3.210.0110.00516.74
8.3.200.0090.00916.36
8.3.190.0060.00417.28
8.3.180.0110.00918.41
8.3.170.0060.01217.03
8.3.160.0050.00318.25
8.3.150.0160.00316.66
8.3.140.0130.00317.03
8.3.130.0030.00618.44
8.3.120.0080.00019.11
8.3.110.0060.01320.94
8.3.100.0140.00724.06
8.3.90.0130.00726.77
8.3.80.0060.00317.97
8.3.70.0150.00016.50
8.3.60.0110.00718.31
8.3.50.0040.00917.23
8.3.40.0150.00318.67
8.3.30.0130.00618.70
8.3.20.0030.00521.77
8.3.10.0080.00020.39
8.3.00.0050.00517.50
8.2.300.0110.01020.29
8.2.290.0150.00520.55
8.2.280.0060.00318.23
8.2.270.0090.00917.02
8.2.260.0110.00718.18
8.2.250.0140.00316.68
8.2.240.0060.01219.04
8.2.230.0050.00322.58
8.2.220.0000.01137.54
8.2.210.0040.00426.77
8.2.200.0060.00316.75
8.2.190.0110.00718.27
8.2.180.0040.01918.08
8.2.170.0040.01122.96
8.2.160.0140.00020.43
8.2.150.0040.00424.18
8.2.140.0020.00524.66
8.2.130.0040.00417.91
8.2.120.0000.00726.35
8.2.110.0030.00622.08
8.2.100.0080.00417.84
8.2.90.0030.00717.63
8.2.80.0070.00517.97
8.2.70.0050.00317.91
8.2.60.0040.00417.95
8.2.50.0040.00418.10
8.2.40.0080.00019.42
8.2.30.0000.00719.31
8.2.20.0000.00718.05
8.2.10.0000.00719.39
8.2.00.0000.00718.14
8.1.340.0130.00720.26
8.1.330.0090.01021.99
8.1.320.0140.00416.00
8.1.310.0030.00618.37
8.1.300.0040.00417.65
8.1.290.0030.01030.84
8.1.280.0120.00625.92
8.1.270.0040.00420.13
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0080.00020.73
8.1.230.0070.00418.98
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0080.00017.47
8.1.190.0040.00417.36
8.1.180.0000.00818.10
8.1.170.0000.00818.34
8.1.160.0000.00818.99
8.1.150.0040.00418.85
8.1.140.0000.00820.52
8.1.130.0000.00720.05
8.1.120.0000.00917.43
8.1.110.0040.00417.49
8.1.100.0080.00017.45
8.1.90.0000.00717.46
8.1.80.0080.00017.46
8.1.70.0000.00717.49
8.1.60.0040.00417.59
8.1.50.0060.00317.43
8.1.40.0000.00717.38
8.1.30.0080.00017.62
8.1.20.0030.00617.52
8.1.10.0070.00017.51
8.1.00.0050.00217.42
8.0.300.0050.00219.63
8.0.290.0000.00716.58
8.0.280.0000.00718.50
8.0.270.0000.00816.68
8.0.260.0080.00018.44
8.0.250.0070.00016.91
8.0.240.0050.00316.82
8.0.230.0040.00416.76
8.0.220.0000.00616.73
8.0.210.0030.00316.89
8.0.200.0040.00416.93
8.0.190.0080.00316.94
8.0.180.0030.00516.80
8.0.170.0000.00816.84
8.0.160.0050.00216.94
8.0.150.0040.00416.84
8.0.140.0000.00716.73
8.0.130.0000.00513.33
8.0.120.0050.00316.88
8.0.110.0030.00516.79
8.0.100.0000.00816.84
8.0.90.0070.00016.91
8.0.80.0040.01816.83
8.0.70.0030.00516.70
8.0.60.0040.00416.78
8.0.50.0050.00216.68
8.0.30.0110.00717.06
8.0.20.0180.00916.98
8.0.10.0080.00016.97
8.0.00.0120.00816.85
7.4.330.0050.00015.55
7.4.320.0040.00416.64
7.4.300.0000.00616.52
7.4.290.0030.00316.48
7.4.280.0000.00816.59
7.4.270.0030.00316.52
7.4.260.0000.00816.45
7.4.250.0000.00716.55
7.4.240.0090.00016.55
7.4.230.0040.00416.51
7.4.220.0030.00616.60
7.4.210.0080.00816.50
7.4.200.0000.00816.67
7.4.160.0070.01016.43
7.4.140.0070.01117.86
7.4.130.0120.01216.46
7.4.120.0100.00716.44
7.4.110.0160.00716.36
7.4.100.0190.00416.44
7.4.90.0150.00616.58
7.4.80.0130.01019.39
7.4.70.0170.00016.51
7.4.60.0070.01016.60
7.4.50.0120.00316.34
7.4.40.0000.01616.52
7.4.00.0130.00314.77
7.3.330.0020.00213.02
7.3.320.0060.00013.17
7.3.310.0000.00716.19
7.3.300.0000.00716.30
7.3.290.0070.00016.26
7.3.280.0080.00716.26
7.3.260.0120.00916.40
7.3.240.0110.01016.43
7.3.230.0070.01116.14
7.3.210.0190.00916.41
7.3.200.0100.00716.39
7.3.190.0170.00516.35
7.3.180.0110.00516.23
7.3.170.0140.00316.55
7.3.160.0100.00716.20
7.3.110.0040.01014.49
7.3.100.0060.01014.70
7.3.90.0110.00214.55
7.3.80.0070.00914.66
7.3.70.0110.00614.62
7.3.60.0070.01114.64
7.3.50.0090.00814.70
7.3.40.0070.00914.67
7.3.30.0090.00514.74
7.3.20.0350.00914.72
7.3.10.0310.00714.64
7.3.00.0290.00714.63
7.2.330.0110.00516.44
7.2.320.0070.01016.80
7.2.310.0100.01316.37
7.2.300.0070.01016.51
7.2.290.0150.00616.80
7.2.240.0050.01114.92
7.2.230.0090.00714.81
7.2.220.0060.01014.86
7.2.210.0060.01114.81
7.2.200.0030.01015.03
7.2.190.0080.01114.80
7.2.180.0120.00414.88
7.2.170.0050.00914.92
7.2.160.0090.00514.85
7.2.150.0240.00614.99
7.2.140.0280.00414.98
7.2.130.0370.00914.93
7.2.120.0290.00715.13
7.2.110.0400.00714.87
7.2.100.0270.00714.93
7.2.90.0320.00715.08
7.2.80.0270.00515.06
7.2.70.0400.00714.94
7.2.60.0340.01015.01
7.2.50.0290.00815.04
7.2.40.0390.00814.94
7.2.30.0380.00815.16
7.2.20.0360.00815.10
7.2.10.0390.00715.02
7.2.00.0320.00814.89
7.1.330.0100.00413.79
7.1.320.0050.00713.77
7.1.310.0050.01313.76
7.1.300.0040.01213.90
7.1.290.0010.01213.77
7.1.280.0020.01213.72
7.1.270.0060.00813.82
7.1.260.0060.00713.94
7.1.250.0230.00813.71

preferences:
89.43 ms | 1476 KiB | 5 Q