3v4l.org

run code in 300+ PHP versions simultaneously
<?php function takesInt(int $val): int { return $val + 1; } takesInt("not int");

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.110.0040.00416.70
8.3.100.0100.00016.61
8.3.90.0030.00626.77
8.3.80.0030.00617.97
8.3.70.0090.00918.18
8.3.60.0060.00916.63
8.3.50.0190.00318.55
8.3.40.0130.00620.32
8.3.30.0040.01418.79
8.3.20.0080.00024.18
8.3.10.0080.00024.66
8.3.00.0000.00926.16
8.2.230.0140.00720.94
8.2.220.0110.00424.06
8.2.210.0150.00326.77
8.2.200.0030.00616.75
8.2.190.0100.00716.63
8.2.180.0120.00916.50
8.2.170.0090.00618.83
8.2.160.0100.00322.96
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00426.16
8.2.110.0060.00319.27
8.2.100.0080.00417.91
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0030.00717.46
8.2.50.0000.00818.07
8.2.40.0050.00321.11
8.2.30.0040.00417.98
8.2.20.0040.00419.23
8.2.10.0060.00917.66
8.2.00.0090.00517.68
8.1.290.0030.00630.84
8.1.280.0100.00625.92
8.1.270.0050.00324.66
8.1.260.0040.00426.35
8.1.250.0130.00328.09
8.1.240.0030.00621.30
8.1.230.0040.00717.77
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0100.00017.22
8.1.190.0080.00017.50
8.1.180.0040.00418.10
8.1.170.0040.00418.54
8.1.160.0040.00418.86
8.1.150.0040.00418.50
8.1.140.0040.00219.44
8.1.130.0070.00717.25
8.1.120.0160.00017.29
8.1.110.0130.00217.40
8.1.100.0090.00617.25
8.1.90.0090.00417.38
8.1.80.0120.00017.30
8.1.70.0120.00017.38
8.1.60.0100.00317.54
8.1.50.0080.00317.54
8.1.40.0110.00017.47
8.1.30.0090.00217.39
8.1.20.0110.00317.58
8.1.10.0100.00417.40
8.1.00.0090.00317.48
8.0.300.0090.00018.77
8.0.290.0070.00016.75
8.0.280.0000.00718.36
8.0.270.0040.00916.75
8.0.260.0120.00216.75
8.0.250.0110.00516.86
8.0.240.0140.00316.92
8.0.230.0090.00616.75
8.0.220.0150.00016.68
8.0.210.0060.00916.71
8.0.200.0160.00016.89
8.0.190.0150.00016.80
8.0.180.0170.00016.80
8.0.170.0100.00516.90
8.0.160.0120.00416.77
8.0.150.0060.00916.75
8.0.140.0060.01216.63
8.0.130.0100.01016.64
8.0.120.0090.00616.75
8.0.110.0120.00216.70
8.0.100.0080.00816.80
8.0.90.0040.01216.77
8.0.80.0080.00816.70
8.0.70.0120.00316.84
8.0.60.0120.00416.78
8.0.50.0140.00316.78
8.0.30.0100.00516.77
8.0.20.0090.00216.86
8.0.10.0040.00916.79

preferences:
18.33 ms | 403 KiB | 5 Q