3v4l.org

run code in 300+ PHP versions simultaneously
<?php function AddIntAndFloat(int $a, float $b) : int { \var_dump( $a, $b ); return $a + $b; } echo AddIntAndFloat(1.4,'2');

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.130.0030.00516.70
8.3.120.0040.00419.16
8.3.110.0040.00420.94
8.3.100.0000.00924.06
8.3.90.0030.00626.77
8.3.80.0070.00316.38
8.3.70.0120.00616.63
8.3.60.0040.01418.55
8.3.50.0110.00618.43
8.3.40.0070.00718.85
8.3.30.0110.00922.12
8.3.20.0030.00721.90
8.3.10.0090.00622.86
8.3.00.0000.00821.85
8.2.250.0070.01116.63
8.2.240.0090.00618.61
8.2.230.0090.00022.58
8.2.220.0050.00337.54
8.2.210.0030.00526.77
8.2.200.0030.00618.41
8.2.190.0120.00616.58
8.2.180.0150.00325.92
8.2.170.0060.00918.94
8.2.160.0100.00322.96
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0170.00026.16
8.2.120.0080.00020.94
8.2.110.0090.00020.99
8.2.100.0110.00017.84
8.2.90.0100.00017.63
8.2.80.0040.00418.80
8.2.70.0080.00017.63
8.2.60.0060.00318.09
8.2.50.0040.00418.10
8.2.40.0070.00319.15
8.2.30.0040.00420.49
8.2.20.0040.00417.87
8.2.10.0000.00819.14
8.2.00.0030.00617.98
8.1.300.0080.00816.19
8.1.290.0070.00330.84
8.1.280.0070.01325.92
8.1.270.0030.00523.99
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0080.00023.97
8.1.230.0070.00420.80
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0110.00517.00
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0030.00618.52
8.1.160.0000.00718.63
8.1.150.0000.00718.75
8.1.140.0000.00718.68
8.1.130.0000.00819.11
8.1.120.0040.00417.34
8.1.110.0000.00817.16
8.1.100.0040.00717.25
8.1.90.0000.00717.32
8.1.80.0060.00317.26
8.1.70.0000.00817.24
8.1.60.0050.00617.50
8.1.50.0070.00317.32
8.1.40.0060.00817.40
8.1.30.0090.00517.53
8.1.20.0140.00317.45
8.1.10.0140.00317.47
8.1.00.0120.00417.37
8.0.300.0080.00020.62
8.0.290.0040.00416.75
8.0.280.0050.00318.35
8.0.270.0030.00316.81
8.0.260.0040.00418.58
8.0.250.0050.00216.99
8.0.240.0040.00417.04
8.0.230.0070.00016.96
8.0.220.0030.00316.93
8.0.210.0050.00416.88
8.0.200.0040.00716.87
8.0.190.0060.00516.83
8.0.180.0070.00416.89
8.0.170.0110.00216.80
8.0.160.0090.00616.82
8.0.150.0110.00416.78
8.0.140.0110.00516.75
8.0.130.0100.00315.63
8.0.120.0080.00616.81
8.0.110.0090.00516.87
8.0.100.0090.00516.81
8.0.90.0080.00516.85
8.0.80.0070.01016.83
8.0.70.0130.00216.73
8.0.60.0130.00116.84
8.0.50.0080.00516.71
8.0.30.0140.00616.88
8.0.20.0130.00916.96
8.0.10.0150.00816.94
8.0.00.0120.00916.88
7.4.330.0000.00616.63
7.4.320.0000.00716.41
7.4.300.0030.00316.48
7.4.290.0110.00016.38
7.4.280.0090.00616.46
7.4.270.0060.00616.52
7.4.260.0060.00516.46
7.4.250.0040.00816.40
7.4.240.0080.00516.46
7.4.230.0100.00416.42
7.4.220.0070.00416.44
7.4.210.0090.00816.49
7.4.200.0100.00316.45
7.4.190.0100.00616.47
7.4.180.0130.00416.52
7.4.160.0080.00816.46
7.4.150.0120.00616.48
7.4.140.0130.00516.50
7.4.130.0100.00916.25
7.4.120.0100.01116.38
7.4.110.0120.00616.33
7.4.100.0130.00716.34
7.4.90.0100.01016.32
7.4.80.0120.00816.58
7.4.70.0090.01016.28
7.4.60.0130.00716.31
7.4.50.0100.00916.34
7.4.40.0110.00816.35
7.4.30.0070.01016.32
7.4.20.0130.01016.35
7.4.10.0100.00916.12
7.4.00.0090.00816.08
7.3.330.0090.00415.25
7.3.320.0120.00315.25
7.3.310.0080.00616.18
7.3.300.0110.00216.21
7.3.290.0110.00116.24
7.3.280.0110.00716.26
7.3.270.0140.00516.26
7.3.260.0110.00816.39
7.3.250.0140.00616.37
7.3.240.0110.00916.38
7.3.230.0120.00816.33
7.3.220.0120.00916.36
7.3.210.0130.00716.31
7.3.200.0110.00816.28
7.3.190.0130.00716.31
7.3.180.0110.00816.31
7.3.170.0100.01016.34
7.3.160.0140.00716.32
7.3.150.0120.00716.33
7.3.140.0120.00916.34
7.3.130.0130.00716.08
7.3.120.0120.00916.07
7.3.110.0120.00816.09
7.3.100.0120.00815.97
7.3.90.0120.00715.96
7.3.80.0110.00715.78
7.3.70.0100.00815.75
7.3.60.0100.00815.81
7.3.50.0090.00915.61
7.3.40.0090.00915.58
7.3.30.0090.00815.56
7.3.20.0140.00816.01
7.3.10.0140.00916.01
7.3.00.0160.00615.99
7.2.340.0160.00916.42
7.2.330.0210.00816.38
7.2.320.0150.00916.46
7.2.310.0170.00516.49
7.2.300.0140.00916.40
7.2.290.0140.00816.44
7.2.280.0150.00916.42
7.2.270.0140.00816.43
7.2.260.0140.00916.18
7.2.250.0140.00916.20
7.2.240.0130.00916.23
7.2.230.0130.00916.14
7.2.220.0130.00816.08
7.2.210.0110.00815.89
7.2.200.0120.00715.87
7.2.190.0130.00715.87
7.2.180.0110.00815.72
7.2.170.0120.00815.67
7.2.160.0110.00915.72
7.2.150.0170.01016.25
7.2.140.0130.00716.21
7.2.130.0120.00916.21
7.2.120.0160.01016.20
7.2.110.0120.00816.23
7.2.100.0130.00916.20
7.2.90.0130.00916.19
7.2.80.0130.01016.19
7.2.70.0150.00716.20
7.2.60.0130.00816.19
7.2.50.0110.01016.14
7.2.40.0170.00816.14
7.2.30.0150.01016.20
7.2.20.0120.00816.15
7.2.10.0130.00816.15
7.2.00.0140.00916.18
7.1.330.0170.00915.55
7.1.320.0180.00915.34
7.1.310.0190.00715.13
7.1.300.0180.00715.09
7.1.290.0140.00915.07
7.1.280.0150.00815.13
7.1.270.0190.00715.14
7.1.260.0170.00815.15
7.1.250.0190.00815.11
7.1.240.0180.00815.44
7.1.230.0190.00715.46
7.1.220.0150.01015.46
7.1.210.0180.00715.50
7.1.200.0180.00715.51
7.1.190.0170.00615.45
7.1.180.0170.00715.44
7.1.170.0170.00815.50
7.1.160.0160.00815.44
7.1.150.0140.00815.47
7.1.140.0150.00815.48
7.1.130.0150.00815.43
7.1.120.0190.00815.45
7.1.110.0170.00815.47
7.1.100.0170.00815.48
7.1.90.0180.00815.40
7.1.80.0160.00715.51
7.1.70.0150.00715.43
7.1.60.0170.00715.48
7.1.50.0150.01015.45
7.1.40.0160.00715.50
7.1.30.0140.00815.51
7.1.20.0180.00615.48
7.1.10.0160.00815.47
7.1.00.0160.00715.45
5.6.260.0190.00317.97

preferences:
28.11 ms | 403 KiB | 5 Q