3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(float $f) {echo $f;} test(3.5); test("3.5"); test(3); test(true); //test("hi");

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.01116.63
8.3.50.0160.00616.63
8.3.40.0150.00418.85
8.3.30.0000.01418.64
8.3.20.0080.00020.21
8.3.10.0080.00023.71
8.3.00.0040.00423.52
8.2.180.0140.00718.04
8.2.170.0170.00318.96
8.2.160.0060.00822.96
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00419.24
8.2.120.0000.00726.35
8.2.110.0090.00022.08
8.2.100.0040.00817.91
8.2.90.0000.00818.83
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0030.00517.93
8.2.50.0060.00318.07
8.2.40.0030.00522.34
8.2.30.0000.00720.49
8.2.20.0020.00517.66
8.2.10.0030.00617.93
8.2.00.0000.00818.01
8.1.280.0100.01025.92
8.1.270.0070.01020.42
8.1.260.0060.00328.09
8.1.250.0080.00028.09
8.1.240.0080.00023.88
8.1.230.0090.00319.08
8.1.220.0000.00817.75
8.1.210.0000.00918.77
8.1.200.0000.01117.22
8.1.190.0040.00417.00
8.1.180.0050.00318.10
8.1.170.0000.00818.66
8.1.160.0000.00720.58
8.1.150.0040.00418.71
8.1.140.0000.00819.35
8.1.130.0030.00317.61
8.1.120.0070.00017.29
8.1.110.0040.00417.28
8.1.100.0000.00717.34
8.1.90.0000.00717.36
8.1.80.0000.00717.36
8.1.70.0000.00717.29
8.1.60.0070.00017.50
8.1.50.0040.00417.36
8.1.40.0030.00517.43
8.1.30.0040.00417.63
8.1.20.0060.00317.45
8.1.10.0040.00417.37
8.1.00.0000.00717.42
8.0.300.0050.00318.77
8.0.290.0030.00516.75
8.0.280.0030.00318.43
8.0.270.0060.00317.18
8.0.260.0000.00818.36
8.0.250.0080.00416.89
8.0.240.0040.00417.02
8.0.230.0000.00716.83
8.0.220.0040.00416.79
8.0.210.0050.00216.90
8.0.200.0000.00616.95
8.0.190.0080.00416.92
8.0.180.0000.00716.95
8.0.170.0000.00816.89
8.0.160.0040.00416.92
8.0.150.0000.00716.77
8.0.140.0000.00716.83
8.0.130.0030.00313.31
8.0.120.0080.00016.85
8.0.110.0040.00416.91
8.0.100.0040.00416.69
8.0.90.0080.00016.66
8.0.80.0050.01016.87
8.0.70.0000.00817.00
8.0.60.0040.00416.84
8.0.50.0040.00416.73
8.0.30.0090.00817.04
8.0.20.0080.01017.40
8.0.10.0080.00016.85
8.0.00.0120.00916.67
7.4.330.0050.00016.66
7.4.320.0000.00716.52
7.4.300.0000.00616.44
7.4.290.0030.00316.42
7.4.280.0000.00816.47
7.4.270.0030.00316.52
7.4.260.0070.00016.32
7.4.250.0040.00416.41
7.4.240.0000.00716.45
7.4.230.0030.00316.44
7.4.220.0030.01416.54
7.4.210.0180.00016.46
7.4.200.0000.00816.61
7.4.160.0100.01316.35
7.4.150.0100.01017.40
7.4.140.0080.01217.86
7.4.130.0140.00416.49
7.4.120.0090.00816.56
7.4.110.0110.01116.18
7.4.100.0050.01116.40
7.4.90.0090.00916.29
7.4.80.0090.00919.39
7.4.70.0130.00316.36
7.4.60.0030.01316.51
7.4.50.0000.01616.45
7.4.40.0050.01116.49
7.4.30.0090.00916.59
7.4.00.0040.01414.88
7.3.330.0030.00313.26
7.3.320.0050.00013.28
7.3.310.0030.00316.29
7.3.300.0000.00716.30
7.3.290.0120.00716.28
7.3.280.0070.01016.33
7.3.270.0090.00917.40
7.3.260.0070.01016.50
7.3.250.0090.00816.38
7.3.240.0110.00716.43
7.3.230.0070.01016.43
7.3.210.0060.00916.71
7.3.200.0180.00316.67
7.3.190.0090.00616.21
7.3.180.0100.00616.50
7.3.170.0110.01116.69
7.3.160.0070.01016.27
7.2.330.0090.01116.38
7.2.320.0080.01116.67
7.2.310.0180.00616.71
7.2.300.0090.00916.59
7.2.290.0120.00916.68
7.2.60.0040.01116.76
7.2.00.0060.00619.39
7.1.200.0060.00615.82
7.1.100.0030.01017.80
7.1.70.0000.01016.85
7.1.60.0030.01419.52
7.1.50.0040.00816.84
7.1.00.0030.07722.54
7.0.200.0040.00716.69
7.0.60.0000.05020.02
7.0.50.0030.08317.91
7.0.40.0030.07720.26
7.0.30.0330.07020.16
7.0.20.0400.07020.25
7.0.10.0130.08020.11
7.0.00.0070.04720.11
5.6.280.0000.03321.13
5.6.210.0100.07720.63
5.6.200.0030.08718.28
5.6.190.0000.09320.52
5.6.180.0230.03320.61
5.6.170.0230.04320.52
5.6.160.0100.07720.43
5.6.150.0070.08018.15
5.6.140.0030.08318.28
5.6.130.0030.04018.21
5.6.120.0130.05721.14
5.6.110.0100.09320.99
5.6.100.0030.08721.03
5.6.90.0100.08021.02
5.6.80.0330.06720.43
5.5.350.0330.07020.39
5.5.340.0070.06017.95
5.5.330.0070.07320.13
5.5.320.0230.04320.35
5.5.310.0370.07320.24
5.5.300.0070.08317.94
5.5.290.0130.07717.95
5.5.280.0070.06720.88
5.5.270.0030.09020.79
5.5.260.0100.07720.87
5.5.250.0030.04020.62
5.5.240.0270.07020.21

preferences:
55.18 ms | 400 KiB | 5 Q