3v4l.org

run code in 300+ PHP versions simultaneously
<?php function callWithArgs(callable $callback, ...$args) { return function(...$params) use($callback, $args) { $args = array_merge($params, $args); return $callback(...$args); }; } $t = callWithArgs('substr', 0, 5); $string = 'Lorem ipsum dolor simet'; var_dump( $t($string) ); // "Lorem"

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.00718.30
8.3.50.0120.00721.92
8.3.40.0110.00418.76
8.3.30.0150.00018.82
8.3.20.0000.00820.29
8.3.10.0050.00323.70
8.3.00.0080.00021.76
8.2.180.0090.00516.63
8.2.170.0100.00722.96
8.2.160.0120.00322.30
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0030.00526.16
8.2.120.0050.00221.00
8.2.110.0100.00022.13
8.2.100.0040.00717.85
8.2.90.0030.00619.95
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0040.00417.91
8.2.50.0040.00418.09
8.2.40.0000.00822.29
8.2.30.0000.00719.39
8.2.20.0040.00417.79
8.2.10.0020.00518.18
8.2.00.0080.00018.17
8.1.280.0100.00725.92
8.1.270.0140.00022.18
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0100.00023.92
8.1.230.0070.00420.89
8.1.220.0040.00417.79
8.1.210.0060.00318.79
8.1.200.0060.00317.23
8.1.190.0080.00017.48
8.1.180.0040.00418.10
8.1.170.0080.00018.59
8.1.160.0070.00020.70
8.1.150.0020.00518.77
8.1.140.0040.00419.52
8.1.130.0070.00017.74
8.1.120.0040.00417.48
8.1.110.0070.00017.45
8.1.100.0030.00517.35
8.1.90.0030.00517.48
8.1.80.0040.00417.37
8.1.70.0030.00317.50
8.1.60.0030.00517.62
8.1.50.0040.00417.48
8.1.40.0040.00417.55
8.1.30.0030.00517.65
8.1.20.0030.00517.51
8.1.10.0030.00617.43
8.1.00.0040.00417.57
8.0.300.0060.00320.22
8.0.290.0030.00516.88
8.0.280.0030.00318.45
8.0.270.0040.00417.18
8.0.260.0030.00317.23
8.0.250.0030.00316.91
8.0.240.0000.00816.87
8.0.230.0030.00317.01
8.0.220.0060.00316.86
8.0.210.0050.00216.88
8.0.200.0000.00616.97
8.0.190.0000.00816.89
8.0.180.0000.00717.03
8.0.170.0070.00017.04
8.0.160.0040.00417.00
8.0.150.0070.00016.82
8.0.140.0000.00716.78
8.0.130.0000.00513.36
8.0.120.0000.00817.00
8.0.110.0000.00716.86
8.0.100.0040.00416.97
8.0.90.0000.00717.02
8.0.80.0120.00616.98
8.0.70.0040.00416.75
8.0.60.0000.00716.73
8.0.50.0060.00316.91
8.0.30.0090.00917.01
8.0.20.0060.01217.43
8.0.10.0040.00417.08
8.0.00.0070.01416.79
7.4.330.0020.00216.79
7.4.320.0030.00316.55
7.4.300.0000.00716.49
7.4.290.0000.00716.50
7.4.280.0000.00716.49
7.4.270.0030.00316.61
7.4.260.0070.00416.60
7.4.250.0060.00316.43
7.4.240.0000.00716.64
7.4.230.0030.00316.56
7.4.220.0060.01616.47
7.4.210.0110.00316.63
7.4.200.0040.00416.61
7.4.150.0090.00917.40
7.4.140.0140.00517.86
7.4.130.0080.01016.49
7.4.120.0070.01216.57
7.4.110.0090.00616.57
7.4.100.0090.00916.47
7.4.90.0130.01016.62
7.4.80.0120.00419.39
7.4.70.0070.01016.48
7.4.60.0100.00716.50
7.4.50.0000.01516.52
7.4.40.0080.00816.73
7.4.30.0090.01216.31
7.4.00.0040.01415.09
7.3.330.0020.00213.30
7.3.320.0000.00513.16
7.3.310.0050.00216.25
7.3.300.0030.00316.31
7.3.290.0090.00616.24
7.3.280.0060.01316.29
7.3.270.0070.01017.40
7.3.260.0130.00316.57
7.3.250.0080.01516.35
7.3.240.0080.01116.30
7.3.230.0140.00716.39
7.3.210.0060.00916.34
7.3.200.0040.01419.39
7.3.190.0090.00916.35
7.3.180.0100.00716.31
7.3.170.0130.00316.47
7.3.160.0150.00016.48
7.3.10.0150.00316.50
7.3.00.0030.01016.02
7.2.330.0120.00616.52
7.2.320.0090.00916.78
7.2.310.0030.01216.38
7.2.300.0070.01716.37
7.2.290.0000.01716.45
7.2.130.0060.01216.70
7.2.120.0030.00716.85
7.2.110.0040.01116.52
7.2.100.0070.01316.59
7.2.90.0120.00316.67
7.2.80.0060.00916.68
7.2.70.0030.01416.70
7.2.60.0090.00416.74
7.2.50.0060.00916.49
7.2.40.0100.00716.61
7.2.30.0100.00316.46
7.2.20.0110.00316.59
7.2.10.0040.00916.86
7.2.00.0060.00917.90
7.1.250.0110.00715.36
7.1.200.0060.00015.76
7.1.100.0040.01118.00
7.1.70.0000.00717.21
7.1.60.0160.01019.40
7.1.50.0110.00616.80
7.1.00.0030.07722.27
7.0.200.0030.00616.51
7.0.60.0230.07321.83
7.0.50.0030.05017.91
7.0.40.0100.07320.29
7.0.30.0230.08320.23
7.0.20.0330.07720.19
7.0.10.0030.04720.24
7.0.00.0070.04720.33
5.6.280.0070.02721.10
5.6.210.0170.06320.61
5.6.200.0100.04718.16
5.6.190.0030.05720.68
5.6.180.0330.07320.67
5.6.170.0200.03720.71
5.6.160.0070.04020.54
5.6.150.0130.07318.18
5.6.140.0030.04018.18
5.6.130.0030.04318.23
5.6.120.0130.03721.10
5.6.110.0100.08321.02
5.6.100.0030.08321.06
5.6.90.0030.04021.09
5.6.80.0070.08020.36
5.5.350.0270.07020.44
5.5.340.0030.06718.05
5.5.330.0070.04020.40
5.5.320.0470.06720.52
5.5.310.0330.04320.27
5.5.300.0000.04318.08
5.5.290.0130.05718.01
5.5.280.0130.04020.77
5.5.270.0070.08720.79
5.5.260.0030.04720.79
5.5.250.0130.07020.49
5.5.240.0370.06720.26

preferences:
37.85 ms | 401 KiB | 5 Q