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("echo $con;"); // 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.60.0070.00716.50
8.3.50.0140.00016.11
8.3.40.0110.00418.71
8.3.30.0070.00718.89
8.3.20.0040.00420.21
8.3.10.0040.00423.77
8.3.00.0080.00017.72
8.2.180.0170.00316.75
8.2.170.0040.01122.96
8.2.160.0100.00320.43
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0050.00221.17
8.2.120.0000.00826.35
8.2.110.0030.00721.18
8.2.100.0080.00417.91
8.2.90.0080.00019.09
8.2.80.0040.00417.97
8.2.70.0030.00717.50
8.2.60.0000.00817.80
8.2.50.0050.00318.10
8.2.40.0040.00420.66
8.2.30.0060.00518.99
8.2.20.0040.00417.91
8.2.10.0030.00518.01
8.2.00.0070.00017.88
8.1.280.0190.01625.92
8.1.270.0050.00323.99
8.1.260.0020.00526.35
8.1.250.0040.00428.09
8.1.240.0060.00320.90
8.1.230.0000.01018.98
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00917.10
8.1.190.0000.00817.11
8.1.180.0090.00018.10
8.1.170.0040.00418.52
8.1.160.0050.00218.97
8.1.150.0040.00420.48
8.1.140.0080.00019.34
8.1.130.0030.00318.69
8.1.120.0000.00717.26
8.1.110.0100.00017.24
8.1.100.0000.00817.37
8.1.90.0030.00717.39
8.1.80.0000.00717.26
8.1.70.0000.00817.38
8.1.60.0070.00317.40
8.1.50.0040.00417.46
8.1.40.0040.00417.52
8.1.30.0080.00017.65
8.1.20.0000.00717.55
8.1.10.0090.00017.42
8.1.00.0040.00417.35
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.39
8.0.270.0000.00717.14
8.0.260.0000.00616.89
8.0.250.0070.00016.87
8.0.240.0050.00316.98
8.0.230.0050.00316.99
8.0.220.0070.00016.97
8.0.210.0040.00416.99
8.0.200.0070.00016.88
8.0.190.0050.00316.86
8.0.180.0000.00716.93
8.0.170.0000.00716.82
8.0.160.0050.00316.91
8.0.150.0030.00616.85
8.0.140.0070.00016.83
8.0.130.0030.00313.30
8.0.120.0070.00016.91
8.0.110.0000.00816.86
8.0.100.0050.00516.86
8.0.90.0080.00016.96
8.0.80.0060.01316.86
8.0.70.0040.00416.86
8.0.60.0000.00716.74
8.0.50.0030.00516.79
8.0.30.0120.00616.98
8.0.20.0130.00817.40
8.0.10.0000.00716.84
8.0.00.0070.01016.55
7.4.330.0000.00515.55
7.4.320.0030.00316.54
7.4.300.0030.00316.54
7.4.290.0030.00516.52
7.4.280.0000.00816.51
7.4.270.0000.00716.60
7.4.260.0040.00413.43
7.4.250.0030.00316.60
7.4.240.0000.00816.54
7.4.230.0070.00016.73
7.4.220.0110.00816.68
7.4.210.0090.00916.68
7.4.200.0030.00316.79
7.4.160.0110.00516.53
7.4.150.0120.00617.40
7.4.140.0100.00717.86
7.4.130.0090.01116.58
7.4.120.0110.01016.57
7.4.110.0130.00916.42
7.4.100.0070.01116.62
7.4.90.0100.00716.58
7.4.80.0100.00719.39
7.4.70.0090.00916.55
7.4.60.0000.01716.68
7.4.50.0030.01316.24
7.4.40.0130.01016.39
7.4.30.0130.00316.46
7.4.00.0030.01315.20
7.3.330.0020.00213.23
7.3.320.0000.00613.29
7.3.310.0000.00716.49
7.3.300.0020.00516.42
7.3.290.0090.00716.46
7.3.280.0060.01116.45
7.3.270.0070.01017.40
7.3.260.0140.00616.56
7.3.250.0110.00916.58
7.3.240.0100.00716.58
7.3.230.0110.01116.59
7.3.210.0000.01716.44
7.3.200.0100.00616.59
7.3.190.0040.01116.54
7.3.180.0130.01016.46
7.3.170.0160.00016.46
7.3.160.0110.00816.67
7.3.10.0050.00716.77
7.3.00.0050.00516.68
7.2.330.0090.00916.66
7.2.320.0100.00716.81
7.2.310.0090.00816.66
7.2.300.0100.00716.76
7.2.290.0060.01016.71
7.2.130.0080.00416.94
7.2.120.0080.00516.96
7.2.110.0090.00517.00
7.2.100.0050.00916.94
7.2.90.0020.01016.79
7.2.80.0090.00316.73
7.2.70.0070.00616.97
7.2.60.0020.00916.86
7.2.50.0080.00216.88
7.2.40.0080.00216.91
7.2.30.0040.00916.90
7.2.20.0080.00616.75
7.2.10.0050.00816.85
7.2.00.0010.01217.67
7.1.250.0040.00915.69
7.1.200.0030.01015.81
7.1.100.0040.01118.14
7.1.70.0090.00616.90
7.1.60.0230.02035.05
7.1.50.0250.01634.88
7.1.40.0170.01334.32
7.1.30.0210.01234.39
7.1.20.0230.01034.61
7.1.10.0060.01316.61
7.1.00.0100.00616.60
7.0.200.0060.01516.75
7.0.190.0150.00616.84
7.0.180.0090.00916.18
7.0.170.0100.01016.25
7.0.160.0060.01516.23
7.0.150.0060.01316.21
7.0.140.0090.01016.57
7.0.130.0060.01216.54
7.0.120.0080.01416.49
7.0.110.0060.01016.47
7.0.100.0110.00616.34
7.0.90.0060.01616.49
7.0.80.0030.01216.15
7.0.70.0170.00316.48
7.0.60.0130.00316.17
7.0.50.0090.01316.12
7.0.40.0040.01516.53
7.0.30.0090.00916.52
7.0.20.0000.01916.63
7.0.10.0060.01316.50
7.0.00.0150.00616.18

preferences:
52.57 ms | 400 KiB | 5 Q