3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function test(string $num) : int { return $num; } echo test('5');

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.00716.88
8.3.50.0140.01021.95
8.3.40.0110.00418.79
8.3.30.0110.00418.76
8.3.20.0060.00320.07
8.3.10.0070.00023.66
8.3.00.0080.00019.97
8.2.180.0070.01416.63
8.2.170.0110.00322.96
8.2.160.0130.00020.57
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0060.00321.04
8.2.120.0080.00026.35
8.2.110.0090.00020.43
8.2.100.0030.00917.80
8.2.90.0030.00619.03
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0030.00618.03
8.2.50.0040.00418.07
8.2.40.0030.00622.12
8.2.30.0040.00420.67
8.2.20.0000.00717.65
8.2.10.0000.00817.91
8.2.00.0040.00418.05
8.1.280.0200.00325.92
8.1.270.0110.00420.08
8.1.260.0000.00728.09
8.1.250.0070.00028.09
8.1.240.0100.00023.97
8.1.230.0080.00417.70
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0000.00818.54
8.1.160.0070.00020.54
8.1.150.0000.00818.75
8.1.140.0080.00019.35
8.1.130.0050.00317.56
8.1.120.0030.00617.23
8.1.110.0040.00417.33
8.1.100.0030.00517.28
8.1.90.0000.00717.28
8.1.80.0040.00417.20
8.1.70.0070.00017.18
8.1.60.0040.00417.41
8.1.50.0000.00817.40
8.1.40.0040.00417.48
8.1.30.0040.00717.46
8.1.20.0030.00617.54
8.1.10.0020.00517.39
8.1.00.0000.01017.43
8.0.300.0060.00318.77
8.0.290.0000.00716.63
8.0.280.0040.00418.37
8.0.270.0050.00217.18
8.0.260.0000.00717.24
8.0.250.0060.00016.86
8.0.240.0000.00716.97
8.0.230.0000.00916.83
8.0.220.0000.00716.92
8.0.210.0000.00716.91
8.0.200.0000.00616.93
8.0.190.0060.00616.90
8.0.180.0080.00016.79
8.0.170.0080.00016.88
8.0.160.0000.00816.80
8.0.150.0030.00416.71
8.0.140.0070.00016.79
8.0.130.0030.00313.32
8.0.120.0030.00516.91
8.0.110.0070.00016.87
8.0.100.0000.00716.73
8.0.90.0040.00416.80
8.0.80.0100.01016.83
8.0.70.0040.00416.68
8.0.60.0080.00016.87
8.0.50.0080.00016.75
8.0.30.0090.01017.16
8.0.20.0130.00817.40
8.0.10.0000.00817.00
8.0.00.0060.01116.77
7.4.330.0030.00316.83
7.4.320.0000.00616.39
7.4.300.0000.00616.41
7.4.290.0050.00516.29
7.4.280.0040.00416.42
7.4.270.0040.00416.55
7.4.260.0070.00016.51
7.4.250.0040.00416.27
7.4.240.0010.00616.51
7.4.230.0030.00316.55
7.4.220.0110.00616.28
7.4.210.0150.00616.46
7.4.200.0070.00016.34
7.4.160.0040.01616.37
7.4.150.0120.01217.40
7.4.140.0160.00517.86
7.4.130.0110.00916.54
7.4.120.0080.01016.49
7.4.110.0070.01016.64
7.4.100.0200.01016.57
7.4.90.0070.01116.35
7.4.80.0110.01119.39
7.4.70.0110.01116.35
7.4.60.0070.01016.50
7.4.50.0030.01016.18
7.4.40.0120.00916.39
7.4.30.0000.02116.41
7.4.00.0030.01014.77
7.3.330.0070.00013.36
7.3.320.0050.00013.30
7.3.310.0070.00016.34
7.3.300.0000.00816.33
7.3.290.0090.00816.35
7.3.280.0090.00716.32
7.3.270.0120.00817.40
7.3.260.0120.00616.61
7.3.250.0140.00716.51
7.3.240.0120.00616.43
7.3.230.0120.01216.56
7.3.210.0070.01016.34
7.3.200.0060.01816.49
7.3.190.0160.00016.24
7.3.180.0120.00316.26
7.3.170.0090.00916.59
7.3.160.0160.00616.48
7.3.10.0080.00816.63
7.3.00.0040.00716.63
7.2.330.0140.00416.48
7.2.320.0090.00616.25
7.2.310.0080.00816.59
7.2.300.0060.01216.60
7.2.290.0080.00816.40
7.2.130.0090.00616.63
7.2.120.0060.00916.57
7.2.110.0110.00716.81
7.2.100.0030.01016.71
7.2.90.0070.01016.82
7.2.80.0040.00716.76
7.2.70.0080.00816.76
7.2.60.0050.00916.75
7.2.50.0060.01216.69
7.2.40.0060.00616.58
7.2.30.0040.00716.79
7.2.20.0100.00716.82
7.2.10.0080.00816.94
7.2.00.0130.00317.97
7.1.250.0080.00815.78
7.1.200.0070.00715.87
7.1.70.0000.00817.28
7.1.60.0030.00717.06
7.1.50.0070.01617.05
7.1.00.0000.07722.39
7.0.200.0070.01016.57
7.0.60.0070.08019.96
7.0.50.0070.07017.86
7.0.40.0130.04720.14
7.0.30.0400.06020.25
7.0.20.0200.07020.24
7.0.10.0070.09020.09
7.0.00.0000.09020.06
5.6.280.0030.07320.99
5.6.210.0100.07320.52
5.6.200.0100.07718.13
5.6.190.0100.04020.66
5.6.180.0200.04320.47
5.6.170.0230.04320.43
5.6.160.0030.04320.46
5.6.150.0070.05018.19
5.6.140.0070.04718.17
5.6.130.0070.08018.15
5.6.120.0070.06020.90
5.6.110.0070.04320.96
5.6.100.0070.08720.98
5.6.90.0030.04021.02
5.6.80.0130.06320.38
5.5.350.0130.08320.44
5.5.340.0130.07717.96
5.5.330.0000.06020.13
5.5.320.0500.07320.27
5.5.310.0200.07020.26
5.5.300.0100.06318.02
5.5.290.0100.03317.95
5.5.280.0100.05720.87
5.5.270.0030.08320.77
5.5.260.0070.08320.92
5.5.250.0100.07720.50
5.5.240.0230.07320.01

preferences:
48.15 ms | 401 KiB | 5 Q