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(1); // 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.0090.00618.52
8.3.50.0100.00821.14
8.3.40.0090.00918.84
8.3.30.0070.00720.17
8.3.20.0040.00420.39
8.3.10.0040.00420.84
8.3.00.0000.00822.44
8.2.180.0120.00316.75
8.2.170.0150.00622.96
8.2.160.0070.00722.01
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00820.86
8.2.110.0000.01020.99
8.2.100.0080.00317.72
8.2.90.0050.00319.23
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0040.00417.91
8.2.50.0050.00318.10
8.2.40.0080.00018.09
8.2.30.0050.00219.34
8.2.20.0080.00017.67
8.2.10.0040.00417.68
8.2.00.0050.00317.74
8.1.280.0100.00725.92
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.13
8.1.230.0030.00817.77
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0080.00018.66
8.1.160.0030.00618.61
8.1.150.0040.00418.47
8.1.140.0040.00417.20
8.1.130.0000.00717.66
8.1.120.0040.00417.33
8.1.110.0000.00717.29
8.1.100.0000.00817.39
8.1.90.0040.00417.28
8.1.80.0000.00717.23
8.1.70.0030.00317.26
8.1.60.0030.00617.41
8.1.50.0000.00817.50
8.1.40.0040.00417.49
8.1.30.0090.00017.47
8.1.20.0030.00517.59
8.1.10.0000.00717.43
8.1.00.0060.00317.44
8.0.300.0040.00418.77
8.0.290.0060.00316.63
8.0.280.0030.00318.40
8.0.270.0030.00317.23
8.0.260.0030.00316.82
8.0.250.0000.00716.86
8.0.240.0000.00816.95
8.0.230.0000.00716.82
8.0.220.0040.00416.91
8.0.210.0000.00716.87
8.0.200.0060.00016.92
8.0.190.0040.00416.98
8.0.180.0000.00716.90
8.0.170.0050.00216.89
8.0.160.0050.00316.85
8.0.150.0040.00416.73
8.0.140.0030.00616.79
8.0.130.0050.00013.28
8.0.120.0040.00416.82
8.0.110.0070.00016.83
8.0.100.0000.00816.88
8.0.90.0030.00516.75
8.0.80.0060.00916.88
8.0.70.0000.00716.94
8.0.60.0040.00416.72
8.0.50.0050.00216.79
8.0.30.0100.01016.96
8.0.20.0120.00717.40
8.0.10.0050.00216.76
8.0.00.0060.01216.83
7.4.330.0000.00515.01
7.4.320.0070.00016.61
7.4.300.0000.00716.60
7.4.290.0030.00316.54
7.4.280.0040.00416.60
7.4.270.0030.00316.70
7.4.260.0080.00013.29
7.4.250.0040.00416.56
7.4.240.0040.00316.48
7.4.230.0000.00716.68
7.4.220.0130.01316.70
7.4.210.0080.00716.60
7.4.200.0070.00016.36
7.4.190.0000.00616.63
7.4.160.0080.01116.41
7.4.150.0140.00717.40
7.4.140.0070.01017.86
7.4.130.0110.00816.50
7.4.120.0060.01016.47
7.4.110.0160.00616.40
7.4.100.0100.00716.70
7.4.90.0130.00316.63
7.4.80.0070.01019.39
7.4.70.0110.00616.55
7.4.60.0150.00916.63
7.4.50.0020.00516.47
7.4.40.0110.00622.77
7.4.30.0070.01016.77
7.4.00.0070.00714.87
7.3.330.0000.00513.37
7.3.320.0000.00513.31
7.3.310.0030.00316.48
7.3.300.0030.00316.36
7.3.290.0090.00916.46
7.3.280.0090.01116.46
7.3.270.0080.00917.40
7.3.260.0110.00718.24
7.3.250.0050.01216.54
7.3.240.0120.01016.43
7.3.230.0070.01116.43
7.3.210.0070.01016.58
7.3.200.0170.00619.39
7.3.190.0090.00816.47
7.3.180.0000.01616.44
7.3.170.0110.00916.50
7.3.160.0070.01116.41
7.3.120.0080.00814.71
7.3.110.0060.01014.96
7.3.100.0060.00914.96
7.3.90.0070.00715.00
7.3.80.0050.00814.99
7.3.70.0080.00514.77
7.3.60.0020.01314.91
7.3.50.0070.00614.94
7.3.40.0030.01214.75
7.3.30.0050.00614.79
7.3.20.0060.00716.57
7.3.10.0070.00416.57
7.3.00.0050.00616.52
7.2.330.0120.00616.37
7.2.320.0130.01016.45
7.2.310.0060.01016.78
7.2.300.0070.01016.75
7.2.290.0050.01116.75
7.2.250.0120.00615.23
7.2.240.0090.00815.13
7.2.230.0070.01014.94
7.2.220.0120.00315.10
7.2.210.0070.00715.12
7.2.200.0100.00715.08
7.2.190.0050.01215.08
7.2.180.0090.00415.06
7.2.170.0030.01015.10
7.2.160.0080.00714.94
7.2.150.0070.01017.11
7.2.140.0100.00017.06
7.2.130.0060.00616.95
7.2.120.0050.00816.72
7.2.110.0060.00716.93
7.2.100.0060.00517.05
7.2.90.0050.00716.88
7.2.80.0010.01116.94
7.2.70.0040.00716.88
7.2.60.0050.00716.86
7.2.50.0080.00316.94
7.2.40.0040.00816.98
7.2.30.0070.00716.95
7.2.20.0030.01016.96
7.2.10.0020.00917.04
7.2.00.0030.01117.47
7.1.330.0050.00915.77
7.1.320.0020.01115.66
7.1.310.0020.00915.67
7.1.300.0050.00915.80
7.1.290.0040.00515.78
7.1.280.0050.00615.74
7.1.270.0060.00615.88
7.1.260.0030.01015.77
7.1.250.0060.00515.77
7.1.240.0090.00615.92
7.1.230.0080.00415.67
7.1.220.0040.00715.98
7.1.210.0080.00015.98
7.1.200.0040.01215.80
7.1.190.0000.01016.01
7.1.180.0030.01015.70
7.1.170.0000.01315.72
7.1.160.0000.01115.85
7.1.150.0100.00015.46
7.1.140.0070.00715.83
7.1.130.0070.00715.79
7.1.120.0060.00615.72
7.1.110.0040.01116.06
7.1.100.0030.00917.01
7.1.90.0100.00016.04
7.1.80.0030.00615.89
7.1.70.0030.01016.54
7.1.60.0070.01317.41
7.1.50.0150.01225.33
7.1.40.0000.00916.01
7.1.30.0040.01115.78
7.1.20.0070.00315.61
7.1.10.0050.00415.78
7.1.00.0000.02619.00
7.0.330.0030.00915.36
7.0.320.0000.01115.39
7.0.310.0000.01115.48
7.0.300.0100.00615.52
7.0.290.0060.00315.40
7.0.280.0060.00615.12
7.0.270.0030.00915.41
7.0.260.0100.00315.61
7.0.250.0000.01115.61
7.0.240.0050.00515.43
7.0.230.0040.01215.45
7.0.220.0060.00315.46
7.0.210.0050.00515.62
7.0.200.0040.01016.03
7.0.190.0000.01215.37
7.0.180.0000.01315.48
7.0.170.0070.00715.43
7.0.160.0030.01015.29
7.0.150.0000.01215.52
7.0.140.0080.03918.71
7.0.130.0040.00815.49
7.0.120.0030.01015.51
7.0.110.0090.00315.35
7.0.100.0090.00615.55
7.0.90.0030.01015.56
7.0.80.0040.00815.25
7.0.70.0070.04417.65
7.0.60.0060.04317.73
7.0.50.0120.03917.82
7.0.40.0090.03416.80
7.0.30.0100.04516.70
7.0.20.0090.04116.74
7.0.10.0080.03716.85
7.0.00.0100.04016.83
5.6.400.0080.00414.45
5.6.390.0030.01014.52
5.6.380.0050.00514.74
5.6.370.0030.01314.54
5.6.360.0000.00914.38
5.6.350.0080.00314.39
5.6.340.0040.01114.43
5.6.330.0000.01114.43
5.6.320.0040.00414.73
5.6.310.0130.00314.54
5.6.300.0080.00814.77
5.6.290.0030.00614.55
5.6.280.0090.03517.49
5.6.270.0000.00914.75
5.6.260.0070.00714.17
5.6.250.0030.01014.67
5.6.240.0060.00614.31
5.6.230.0040.01114.57
5.6.220.0030.04117.44
5.6.210.0100.04117.54
5.6.200.0070.04817.73
5.6.190.0070.04717.83
5.6.180.0060.04417.72
5.6.170.0000.03917.61
5.6.160.0030.05017.81
5.6.150.0120.03017.68
5.6.140.0100.04017.67
5.6.130.0120.04317.67
5.6.120.0030.03917.73
5.6.110.0140.03117.65
5.6.100.0060.03817.86
5.6.90.0030.02917.73
5.6.80.0040.02717.46
5.6.70.0020.03117.41
5.6.60.0090.03317.52
5.6.50.0090.02417.42
5.6.40.0030.03917.34
5.6.30.0070.02017.28
5.6.20.0080.04117.28
5.6.10.0100.03117.26
5.6.00.0070.02517.48
5.5.380.0070.00314.66
5.5.370.0030.01314.61
5.5.360.0050.03717.23
5.5.350.0080.04717.43
5.5.340.0080.04717.64
5.5.330.0060.04617.80
5.5.320.0080.03817.49
5.5.310.0020.03517.61
5.5.300.0070.03217.72
5.5.290.0150.03017.60
5.5.280.0120.04017.45
5.5.270.0080.03917.40
5.5.260.0110.02317.58
5.5.250.0060.02217.57
5.5.240.0080.02017.29
5.5.230.0090.01617.40
5.5.220.0030.02817.18
5.5.210.0020.04717.13
5.5.200.0030.02617.26
5.5.190.0050.02417.20
5.5.180.0030.02517.20
5.5.170.0090.00614.46
5.5.160.0070.02217.42
5.5.150.0050.02217.37
5.5.140.0120.03517.40
5.5.130.0020.03017.40
5.5.120.0120.01817.36
5.5.110.0050.02317.23
5.5.100.0060.02317.15
5.5.90.0090.03017.32
5.5.80.0040.02517.07
5.5.70.0080.02017.29
5.5.60.0080.02817.02
5.5.50.0060.04317.04
5.5.40.0050.02517.03
5.5.30.0030.02317.13
5.5.20.0050.03117.06
5.5.10.0110.01817.11
5.5.00.0050.02317.06
5.4.450.0070.02315.35
5.4.440.0060.02815.40
5.4.430.0060.04615.46
5.4.420.0080.02615.24
5.4.410.0070.02215.19
5.4.400.0020.02615.27
5.4.390.0070.01815.01
5.4.380.0000.02215.18
5.4.370.0030.03214.84
5.4.360.0020.03714.94
5.4.350.0070.02315.13
5.4.340.0050.02015.08
5.4.330.0060.00610.99
5.4.320.0050.03215.14
5.4.310.0070.02515.11
5.4.300.0090.02915.01
5.4.290.0090.02215.09
5.4.280.0050.02515.25
5.4.270.0080.01815.17
5.4.260.0000.02815.05
5.4.250.0050.02515.00
5.4.240.0030.02215.19
5.4.230.0030.02215.18
5.4.220.0020.02915.04
5.4.210.0010.02615.09
5.4.200.0020.03315.04
5.4.190.0000.02314.99
5.4.180.0070.02215.15
5.4.170.0030.02014.98
5.4.160.0050.02315.15
5.4.150.0080.02615.29
5.4.140.0090.02513.85
5.4.130.0070.02313.74
5.4.120.0000.02313.97
5.4.110.0000.02213.83
5.4.100.0030.02213.92
5.4.90.0010.02213.90
5.4.80.0080.01813.62
5.4.70.0000.02413.91
5.4.60.0060.02613.81
5.4.50.0050.04013.64
5.4.40.0050.02213.81
5.4.30.0070.04213.76
5.4.20.0070.01713.77
5.4.10.0050.02613.60
5.4.00.0070.03613.46
5.3.290.0020.02512.75
5.3.280.0020.02412.50
5.3.270.0010.02412.66
5.3.260.0060.01912.67
5.3.250.0020.02312.57
5.3.240.0000.03112.59
5.3.230.0000.02712.66
5.3.220.0020.02312.69
5.3.210.0040.02212.60
5.3.200.0070.01812.67
5.3.190.0030.01812.62
5.3.180.0050.01912.60
5.3.170.0050.02012.64
5.3.160.0070.01812.64
5.3.150.0070.02012.73
5.3.140.0030.02312.78
5.3.130.0050.03012.69
5.3.120.0060.03512.60
5.3.110.0020.02412.70
5.3.100.0060.01912.45
5.3.90.0070.03712.38
5.3.80.0080.02012.17
5.3.70.0040.02912.37
5.3.60.0020.02412.35
5.3.50.0040.02112.21
5.3.40.0080.03712.27
5.3.30.0000.03112.11
5.3.20.0020.02812.13
5.3.10.0070.03612.10
5.3.00.0020.02212.06
5.2.170.0030.04012.37
5.2.160.0000.06312.37
5.2.150.0070.03712.37
5.2.140.0070.05712.37
5.2.130.0030.06012.37
5.2.120.0030.06012.37
5.2.110.0030.04012.37
5.2.100.0030.04312.37
5.2.90.0070.05712.37
5.2.80.0000.06012.37
5.2.70.0070.05312.37
5.2.60.0130.05712.37
5.2.50.0070.05012.37
5.2.40.0030.03312.37
5.2.30.0070.05312.37
5.2.20.0030.04012.37
5.2.10.0000.05312.37
5.2.00.0000.03012.37
5.1.60.0070.04712.37
5.1.50.0030.05312.37
5.1.40.0030.05712.37
5.1.30.0000.04312.37
5.1.20.0030.06012.37
5.1.10.0000.03012.37
5.1.00.0070.02012.37
5.0.50.0030.02012.37
5.0.40.0000.02712.37
5.0.30.0030.06312.37
5.0.20.0000.04012.37
5.0.10.0000.04712.37
5.0.00.0030.06312.37
4.4.90.0000.04012.37
4.4.80.0000.03712.37
4.4.70.0030.01312.37
4.4.60.0030.03312.37
4.4.50.0000.01712.37
4.4.40.0000.02712.37
4.4.30.0000.02012.37
4.4.20.0030.02312.37
4.4.10.0000.03712.37
4.4.00.0030.02712.37
4.3.110.0030.02012.37
4.3.100.0000.01712.37
4.3.90.0000.02312.37
4.3.80.0000.03312.37
4.3.70.0000.03712.37
4.3.60.0000.03712.37
4.3.50.0030.03012.37
4.3.40.0070.04712.37
4.3.30.0000.04012.37
4.3.20.0000.03012.37
4.3.10.0030.03012.37
4.3.00.0000.03712.37

preferences:
50.1 ms | 400 KiB | 5 Q