3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CallableStringifier { private static $callables = array(); public static function stringify($callable) { $id = count(self::$callables); self::$callables[$id] = $callable; return 'return ' . __CLASS__ . "::call($id, func_get_args());"; } public static function call($id, $args) { return call_user_func_array(self::$callables[$id], $args); } } $func = create_function('$arg1', CallableStringifier::stringify(function($arg1) { return $arg1; })); echo $func(function(){return 3;}); // outputs 1

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.0000.01418.79
8.3.30.0140.00318.70
8.3.20.0070.00020.34
8.3.10.0030.00623.53
8.3.00.0020.00522.44
8.2.170.0090.00922.96
8.2.160.0070.00720.46
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0000.00917.50
8.2.110.0060.00319.19
8.2.100.0040.00717.72
8.2.90.0040.00419.05
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0030.00617.80
8.2.50.0040.00418.07
8.2.40.0040.00421.25
8.2.30.0030.00618.01
8.2.20.0080.00017.56
8.2.10.0040.00417.88
8.2.00.0090.00017.91
8.1.270.0090.00020.27
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0030.00717.52
8.1.230.0110.00022.63
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0090.00017.23
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0040.00418.46
8.1.160.0070.00021.89
8.1.150.0010.00718.77
8.1.140.0080.00017.25
8.1.130.0000.00717.64
8.1.120.0040.00417.28
8.1.110.0040.00417.33
8.1.100.0030.00617.22
8.1.90.0000.00817.34
8.1.80.0070.00017.30
8.1.70.0000.00717.22
8.1.60.0000.00717.48
8.1.50.0080.00017.44
8.1.40.0050.00317.41
8.1.30.0000.00917.64
8.1.20.0060.00317.65
8.1.10.0040.00417.57
8.1.00.0040.00417.42
8.0.300.0020.00518.77
8.0.290.0050.00316.63
8.0.280.0030.00318.48
8.0.270.0040.00417.20
8.0.260.0060.00017.15
8.0.250.0070.00016.99
8.0.240.0000.00616.96
8.0.230.0000.00716.91
8.0.220.0050.00216.93
8.0.210.0070.00016.88
8.0.200.0000.00616.92
8.0.190.0030.00516.82
8.0.180.0050.00216.96
8.0.170.0050.00316.94
8.0.160.0030.00316.90
8.0.150.0040.00416.84
8.0.140.0040.00416.80
8.0.130.0060.00013.32
8.0.120.0050.00316.86
8.0.110.0070.00016.81
8.0.100.0040.00416.78
8.0.90.0000.00716.69
8.0.80.0130.00716.98
8.0.70.0040.00416.81
8.0.60.0000.00716.96
8.0.50.0000.00716.96
8.0.30.0050.01317.11
8.0.20.0120.00717.40
8.0.10.0040.00416.83
8.0.00.0080.00916.76
7.4.330.0000.00515.09
7.4.320.0030.00316.50
7.4.300.0030.00316.56
7.4.290.0060.00016.53
7.4.280.0060.00316.49
7.4.270.0030.00316.52
7.4.260.0030.00316.44
7.4.250.0000.00816.48
7.4.240.0050.00216.63
7.4.230.0030.00316.66
7.4.220.0110.00716.63
7.4.210.0020.01316.54
7.4.200.0040.00416.36
7.4.160.0090.00616.47
7.4.150.0120.00617.40
7.4.140.0090.01417.86
7.4.130.0040.01616.65
7.4.120.0180.00716.57
7.4.110.0140.00316.63
7.4.100.0060.01316.52
7.4.90.0060.01616.58
7.4.80.0100.00619.39
7.4.70.0090.00816.48
7.4.60.0030.01316.57
7.4.50.0080.00016.41
7.4.40.0060.00916.43
7.4.30.0000.01716.64
7.4.10.0100.01014.94
7.4.00.0130.00415.00
7.3.330.0000.00613.31
7.3.320.0000.00613.24
7.3.310.0000.00716.31
7.3.300.0030.00516.41
7.3.290.0070.00016.45
7.3.280.0090.01116.45
7.3.270.0090.00917.40
7.3.260.0090.00916.45
7.3.250.0090.00916.39
7.3.240.0080.00916.36
7.3.230.0070.01016.39
7.3.210.0040.01216.63
7.3.200.0090.00919.39
7.3.190.0060.01316.43
7.3.180.0070.00916.59
7.3.170.0030.01316.39
7.3.160.0100.00716.50
7.3.130.0070.01314.84
7.3.120.0070.01014.89
7.3.110.0070.01215.09
7.3.100.0050.00814.91
7.3.90.0070.01014.94
7.3.80.0060.00815.00
7.3.70.0030.00814.82
7.3.60.0060.00914.97
7.3.50.0020.01414.94
7.3.40.0080.00814.89
7.3.30.0000.01514.79
7.3.20.0030.01116.64
7.3.10.0050.00816.55
7.3.00.0070.00616.76
7.2.330.0140.00516.88
7.2.320.0070.01016.77
7.2.310.0060.01216.79
7.2.300.0060.01616.91
7.2.290.0080.01516.62
7.2.260.0080.01114.97
7.2.250.0070.01115.22
7.2.240.0050.01015.15
7.2.230.0040.01115.17
7.2.220.0050.01114.98
7.2.210.0000.01315.14
7.2.200.0070.00715.14
7.2.190.0080.00915.02
7.2.180.0040.01214.84
7.2.170.0050.01215.16
7.2.160.0040.01114.91
7.2.150.0080.00816.93
7.2.140.0030.01317.05
7.2.130.0060.00917.11
7.2.120.0060.00916.99
7.2.110.0070.00316.85
7.2.100.0000.01416.98
7.2.90.0070.01116.86
7.2.80.0030.01316.92
7.2.70.0030.01417.07
7.2.60.0100.00316.90
7.2.50.0120.00316.86
7.2.40.0090.00617.19
7.2.30.0110.00017.15
7.2.20.0090.00617.20
7.2.10.0060.00816.79
7.2.00.0040.01118.22
7.1.330.0050.00815.87
7.1.320.0060.01015.85
7.1.310.0060.00715.76
7.1.300.0030.01215.81
7.1.290.0100.00515.90
7.1.280.0030.00715.85
7.1.270.0030.01115.88
7.1.260.0070.00515.88
7.1.250.0030.00615.45
7.1.240.0040.00815.82
7.1.230.0030.01215.71
7.1.220.0060.00615.74
7.1.210.0030.00615.84
7.1.200.0060.00615.69
7.1.190.0060.00615.86
7.1.180.0060.00915.82
7.1.170.0030.00615.99
7.1.160.0080.00515.96
7.1.150.0060.00615.87
7.1.140.0030.00915.52
7.1.130.0080.00315.81
7.1.120.0000.01415.80
7.1.110.0060.00615.98
7.1.100.0070.00716.88
7.1.90.0000.00915.50
7.1.80.0040.01115.85
7.1.70.0080.00516.46
7.1.60.0060.01417.95
7.1.50.0050.01216.38
7.1.40.0080.00415.86
7.1.30.0000.01815.84
7.1.20.0030.00915.82
7.1.10.0030.00715.69
7.1.00.0050.04319.17
7.0.330.0000.01515.40
7.0.320.0040.00415.37
7.0.310.0080.00415.63
7.0.300.0030.00615.29
7.0.290.0090.00615.59
7.0.280.0090.00315.14
7.0.270.0090.00615.26
7.0.260.0070.00715.41
7.0.250.0090.00315.45
7.0.240.0070.00715.50
7.0.230.0060.00615.19
7.0.220.0070.00315.62
7.0.210.0060.00615.39
7.0.200.0150.00816.14
7.0.190.0030.00715.59
7.0.180.0030.00815.14
7.0.170.0100.00315.54
7.0.160.0060.01215.56
7.0.150.0110.00315.55
7.0.140.0000.01215.61
7.0.130.0040.01115.53
7.0.120.0090.00015.30
7.0.110.0040.00815.45
7.0.100.0030.01015.48
7.0.90.0070.00315.32
7.0.80.0030.00615.59
7.0.70.0060.00615.48
7.0.60.0100.04317.78
7.0.50.0060.02616.80
7.0.40.0080.04316.80
7.0.30.0180.02516.76
7.0.20.0160.03816.87
7.0.10.0040.03716.89
7.0.00.0050.03716.97
5.6.400.0060.00314.75
5.6.390.0080.00614.66
5.6.380.0060.00614.29
5.6.370.0080.00414.13
5.6.360.0040.01114.54
5.6.350.0090.00914.66
5.6.340.0080.00414.59
5.6.330.0030.01314.70
5.6.320.0090.00614.45
5.6.310.0120.00314.56
5.6.300.0030.00614.64
5.6.290.0120.00014.42
5.6.280.0000.04317.55
5.6.270.0070.00714.70
5.6.260.0070.00614.37
5.6.250.0100.01014.82
5.6.240.0060.00614.70
5.6.230.0060.00914.61
5.6.220.0060.01014.46
5.6.210.0070.04017.44
5.6.200.0080.03216.38
5.6.190.0020.03817.51
5.6.180.0200.03817.46
5.6.170.0220.03717.48
5.6.160.0070.04617.60
5.6.150.0080.04516.42
5.6.140.0060.04616.37
5.6.130.0110.02616.32
5.6.120.0050.02717.61
5.6.110.0070.03517.79
5.6.100.0100.03817.75
5.6.90.0030.02617.50
5.6.80.0030.02517.44
5.6.70.2230.02517.50
5.6.60.0030.00914.38
5.6.50.0090.00614.08
5.6.40.0040.00814.33
5.6.30.0030.00614.45
5.6.20.0110.00414.32
5.6.10.0030.01214.42
5.6.00.0090.00014.27
5.5.380.0030.01414.66
5.5.370.0070.00314.23
5.5.360.0040.00814.27
5.5.350.0180.04017.37
5.5.340.0060.03916.23
5.5.330.0070.04217.36
5.5.320.0130.02317.40
5.5.310.0180.03017.41
5.5.300.0030.02516.38
5.5.290.0050.04516.18
5.5.280.0060.04517.47
5.5.270.0030.02517.67
5.5.260.0060.03817.67
5.5.250.0110.01817.51
5.5.240.0120.04517.34
5.5.230.0030.01014.16
5.5.220.0030.00914.12
5.5.210.0050.00514.43
5.5.200.0080.00414.35
5.5.190.0040.01514.14
5.5.180.0000.01514.39
5.5.170.0060.00314.24
5.5.160.0060.00614.40
5.5.150.0030.01214.51
5.5.140.0080.00814.14
5.5.130.0080.00014.41
5.5.120.0060.00614.18
5.5.110.0060.00614.42
5.5.100.0070.00714.56
5.5.90.0000.01114.11
5.5.80.0040.01114.26
5.5.70.0030.01014.10
5.5.60.0030.00514.46
5.5.50.0060.00914.15
5.5.40.0070.00714.34
5.5.30.0090.00314.45
5.5.20.0070.00314.59
5.5.10.0030.01314.67
5.5.00.0100.00014.48
5.4.450.0130.03715.48
5.4.440.0130.02815.51
5.4.430.0070.03515.59
5.4.420.0130.02815.47
5.4.410.0130.02715.30
5.4.400.0160.02915.42
5.4.390.0090.02815.42
5.4.380.0110.02815.35
5.4.370.0380.03415.26
5.4.360.0100.03315.33
5.4.350.0120.02715.36
5.4.340.0250.02815.35
5.4.330.0030.00711.57
5.4.320.0170.03515.35
5.4.310.0100.03015.42
5.4.300.0150.03015.29
5.4.290.0180.02515.43
5.4.280.0130.03315.29
5.4.270.0130.02315.31
5.4.260.0150.03215.20
5.4.250.0080.03315.41
5.4.240.0100.02715.26
5.4.230.0130.02815.43
5.4.220.0130.02315.42
5.4.210.0150.02715.38
5.4.200.0050.03414.20
5.4.190.0110.02815.24
5.4.180.0070.02815.27
5.4.170.0070.03315.38
5.4.160.0080.03115.35
5.4.150.0400.02815.24
5.4.140.0270.02314.02
5.4.130.0130.02514.10
5.4.120.0050.03114.07
5.4.110.0140.02213.98
5.4.100.0100.02914.17
5.4.90.0080.03114.07
5.4.80.0100.02914.16
5.4.70.0110.02814.00
5.4.60.0170.03513.87
5.4.50.0010.03314.06
5.4.40.0160.03813.97
5.4.30.0230.03513.90
5.4.20.0130.02013.96
5.4.10.0020.00511.57
5.4.00.0000.00811.57

preferences:
52.88 ms | 400 KiB | 5 Q