3v4l.org

run code in 300+ PHP versions simultaneously
<?php function my_func(int $n) { var_dump($n); } my_func('6'); // => (int) 6 my_func(3.1415); // => (int) 3 my_func(TRUE); // => (int) 3

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.0080.00816.50
8.3.50.0060.00916.50
8.3.40.0150.00018.61
8.3.30.0170.00318.67
8.3.20.0040.00420.21
8.3.10.0040.00421.89
8.3.00.0040.00419.14
8.2.180.0110.00418.29
8.2.170.0170.00322.96
8.2.160.0070.00720.33
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0000.00821.04
8.2.120.0090.00026.35
8.2.110.0070.00320.57
8.2.100.0090.00317.91
8.2.90.0040.00418.92
8.2.80.0040.00417.97
8.2.70.0040.00417.25
8.2.60.0000.00717.93
8.2.50.0000.00818.10
8.2.40.0000.00720.55
8.2.30.0080.00020.86
8.2.20.0040.00417.97
8.2.10.0030.00517.84
8.2.00.0000.00717.80
8.1.280.0070.01125.92
8.1.270.0050.00222.19
8.1.260.0050.00326.35
8.1.250.0060.00328.09
8.1.240.0030.00623.78
8.1.230.0030.01023.86
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.13
8.1.190.0040.00416.98
8.1.180.0070.00018.10
8.1.170.0000.00818.49
8.1.160.0050.00218.99
8.1.150.0070.00018.72
8.1.140.0040.00419.48
8.1.130.0000.00818.65
8.1.120.0040.00417.33
8.1.110.0040.00417.30
8.1.100.0050.00317.30
8.1.90.0040.00417.31
8.1.80.0040.00417.21
8.1.70.0040.00417.32
8.1.60.0000.00717.52
8.1.50.0080.00017.45
8.1.40.0040.00417.33
8.1.30.0040.00417.55
8.1.20.0050.00317.64
8.1.10.0000.00717.54
8.1.00.0070.00017.46
8.0.300.0080.00018.77
8.0.290.0030.00616.75
8.0.280.0030.00318.37
8.0.270.0050.00317.09
8.0.260.0030.00316.82
8.0.250.0030.00316.92
8.0.240.0000.00716.91
8.0.230.0030.00316.91
8.0.220.0000.00716.79
8.0.210.0030.00516.89
8.0.200.0040.00416.98
8.0.190.0080.00016.95
8.0.180.0070.00016.90
8.0.170.0070.00016.89
8.0.160.0060.00316.95
8.0.150.0000.00716.87
8.0.140.0030.00516.87
8.0.130.0000.00513.27
8.0.120.0070.00016.88
8.0.110.0050.00316.73
8.0.100.0000.00916.75
8.0.90.0030.00516.81
8.0.80.0100.00716.93
8.0.70.0040.00416.71
8.0.60.0050.00316.95
8.0.50.0070.00016.99
8.0.30.0090.00817.10
8.0.20.0120.01017.40
8.0.10.0040.00416.96
8.0.00.0110.00616.59
7.4.330.0020.00215.55
7.4.320.0060.00016.48
7.4.300.0030.00316.53
7.4.290.0060.00316.55
7.4.280.0050.00516.37
7.4.270.0000.00816.50
7.4.260.0000.00816.53
7.4.250.0030.00616.54
7.4.240.0030.00316.47
7.4.230.0070.00016.27
7.4.220.0090.01216.46
7.4.210.0050.01116.53
7.4.200.0040.00416.61
7.4.160.0110.00816.35
7.4.150.0070.01317.40
7.4.140.0110.00917.86
7.4.130.0030.01516.40
7.4.120.0080.01016.40
7.4.110.0060.01016.46
7.4.100.0160.00316.34
7.4.90.0090.00816.45
7.4.80.0070.01119.39
7.4.70.0110.00616.25
7.4.60.0090.00616.47
7.4.50.0030.01316.22
7.4.40.0060.01016.26
7.4.30.0030.01316.54
7.4.00.0060.00914.93
7.3.330.0030.00313.09
7.3.320.0030.00313.25
7.3.310.0030.00316.19
7.3.300.0070.00016.29
7.3.290.0030.00316.24
7.3.280.0060.01016.22
7.3.270.0190.01317.40
7.3.260.0080.00816.40
7.3.250.0090.01116.29
7.3.240.0020.01716.45
7.3.230.0000.01816.20
7.3.210.0090.00616.45
7.3.200.0160.00016.46
7.3.190.0100.00716.46
7.3.180.0060.00916.32
7.3.170.0090.00616.26
7.3.160.0130.00316.34
7.2.330.0070.01116.64
7.2.320.0080.00816.71
7.2.310.0070.01016.53
7.2.300.0190.00316.31
7.2.290.0130.00716.30
7.2.60.0030.01016.50
7.2.00.0030.00919.33
7.1.200.0020.00715.48
7.1.100.0040.00817.88
7.1.70.0030.00916.82
7.1.60.0150.01135.05
7.1.50.0240.01533.04
7.1.40.0230.00734.38
7.1.30.0150.01234.45
7.1.20.0250.01834.55
7.1.10.0030.00916.44
7.1.00.0030.01116.61
7.0.200.0050.00716.63
7.0.190.0030.00916.67
7.0.180.0090.00316.24
7.0.170.0030.00916.40
7.0.160.0120.01214.39
7.0.150.0140.00714.56
7.0.140.0030.00916.38
7.0.130.0040.01216.40
7.0.120.0180.00614.63
7.0.110.0030.01016.36
7.0.100.0030.01216.45
7.0.90.0140.00916.28
7.0.80.0150.00016.43
7.0.70.0080.00416.19
7.0.60.0030.01116.02
7.0.50.0080.01216.29
7.0.40.0050.00816.48
7.0.30.0120.01616.23
7.0.20.0060.00616.54
7.0.10.0140.00716.61
7.0.00.0030.00916.45

preferences:
42.73 ms | 401 KiB | 5 Q