3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function doStuff(int $x, string $y, float $z) : bool { } doStuff(1, 'test', 1.4);

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.0120.00916.63
8.3.50.0120.00622.09
8.3.40.0090.00618.92
8.3.30.0110.00418.71
8.3.20.0040.00422.10
8.3.10.0000.00823.60
8.3.00.0040.00419.85
8.2.180.0040.01118.54
8.2.170.0110.00422.96
8.2.160.0070.01020.38
8.2.150.0050.00324.18
8.2.140.0000.00724.66
8.2.130.0080.00019.27
8.2.120.0000.00726.35
8.2.110.0090.00020.30
8.2.100.0090.00317.90
8.2.90.0000.00819.09
8.2.80.0080.00017.97
8.2.70.0000.00917.63
8.2.60.0040.00418.04
8.2.50.0000.00818.07
8.2.40.0080.00022.04
8.2.30.0000.00720.57
8.2.20.0040.00417.60
8.2.10.0040.00417.86
8.2.00.0080.00017.85
8.1.280.0090.00625.92
8.1.270.0040.00420.32
8.1.260.0070.00028.09
8.1.250.0000.00728.09
8.1.240.0070.00322.02
8.1.230.0080.00417.83
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00617.23
8.1.190.0000.00816.87
8.1.180.0040.00418.10
8.1.170.0040.00718.55
8.1.160.0070.00020.54
8.1.150.0070.00018.72
8.1.140.0050.00319.48
8.1.130.0030.00317.50
8.1.120.0030.00317.34
8.1.110.0000.00817.20
8.1.100.0000.00717.25
8.1.90.0080.00017.23
8.1.80.0050.00217.18
8.1.70.0040.00417.26
8.1.60.0000.00917.53
8.1.50.0000.00817.34
8.1.40.0040.00417.44
8.1.30.0050.00317.59
8.1.20.0000.00817.59
8.1.10.0060.00317.53
8.1.00.0040.00417.33
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0030.00318.25
8.0.270.0030.00317.11
8.0.260.0060.00017.18
8.0.250.0000.00716.97
8.0.240.0040.00416.99
8.0.230.0070.00016.96
8.0.220.0060.00316.91
8.0.210.0040.00416.89
8.0.200.0040.00416.89
8.0.190.0030.00517.00
8.0.180.0050.00216.92
8.0.170.0030.00516.82
8.0.160.0020.00516.93
8.0.150.0030.00316.73
8.0.140.0000.00816.87
8.0.130.0000.00513.32
8.0.120.0050.00316.90
8.0.110.0000.00716.80
8.0.100.0040.00416.74
8.0.90.0040.00416.66
8.0.80.0100.00616.87
8.0.70.0040.00416.84
8.0.60.0070.00016.84
8.0.50.0000.00716.93
8.0.30.0120.00517.04
8.0.20.0070.01317.40
8.0.10.0080.00016.89
8.0.00.0090.00816.73
7.4.330.0050.00016.79
7.4.320.0000.00716.39
7.4.300.0030.00316.43
7.4.290.0000.00716.43
7.4.280.0000.00716.43
7.4.270.0040.00416.59
7.4.260.0070.00016.53
7.4.250.0000.00716.35
7.4.240.0020.00516.48
7.4.230.0070.00016.56
7.4.220.0070.01416.52
7.4.210.0070.00716.38
7.4.200.0030.00316.42
7.4.160.0120.00316.62
7.4.150.0060.01117.40
7.4.140.0120.00617.86
7.4.130.0120.00716.50
7.4.120.0110.00716.48
7.4.110.0150.00816.58
7.4.100.0070.01016.65
7.4.90.0120.00616.64
7.4.80.0100.01019.39
7.4.70.0130.00716.27
7.4.60.0140.01016.43
7.4.50.0070.00316.38
7.4.40.0100.00616.29
7.4.30.0100.01016.55
7.4.00.0060.00914.91
7.3.330.0000.00613.43
7.3.320.0030.00313.23
7.3.310.0030.00316.21
7.3.300.0050.00316.37
7.3.290.0070.00716.31
7.3.280.0040.01216.34
7.3.270.0170.00017.40
7.3.260.0140.00316.46
7.3.250.0110.01116.38
7.3.240.0100.00616.58
7.3.230.0140.01416.52
7.3.210.0110.00716.46
7.3.200.0070.01016.23
7.3.190.0070.01016.42
7.3.180.0070.01016.41
7.3.170.0160.01216.49
7.3.160.0030.01216.33
7.3.120.0140.00314.65
7.3.110.0110.00714.80
7.3.100.0070.01014.83
7.3.90.0120.00314.68
7.3.80.0090.00914.78
7.3.70.0060.00614.72
7.3.60.0080.00814.85
7.3.50.0040.01514.86
7.3.40.0040.01114.54
7.3.30.0060.01014.70
7.3.20.0060.00916.51
7.3.10.0030.01016.80
7.3.00.0060.00916.66
7.2.330.0090.01016.58
7.2.320.0030.01416.55
7.2.310.0100.00616.37
7.2.300.0110.00616.29
7.2.290.0160.00616.57
7.2.250.0070.01114.78
7.2.240.0030.01715.04
7.2.230.0070.01315.06
7.2.220.0100.00715.15
7.2.210.0040.01514.72
7.2.200.0030.00715.01
7.2.190.0060.01214.75
7.2.180.0060.01214.84
7.2.170.0000.01614.87
7.2.60.0100.00316.78
7.2.00.0000.01318.96
7.1.330.0000.01415.54
7.1.320.0030.00915.78
7.1.310.0070.01115.77
7.1.300.0140.00015.69
7.1.290.0100.00715.56
7.1.280.0120.00615.65
7.1.270.0060.00915.37
7.1.260.0090.00615.46
7.1.200.0030.01015.73
7.1.100.0030.00918.05
7.1.70.0000.01017.13
7.1.60.0120.01219.44
7.1.50.0130.01734.77
7.1.00.0030.07722.45
7.0.200.0000.01016.68
7.0.60.0100.08719.82
7.0.50.0100.03317.85
7.0.40.0000.04720.40
7.0.30.0430.05720.34
7.0.20.0330.08020.21
7.0.10.0070.06720.15
7.0.00.0170.08020.29
5.6.280.0000.03321.12
5.6.210.0070.07020.67
5.6.200.0000.08718.27
5.6.190.0170.08020.57
5.6.180.0200.04720.39
5.6.170.0400.05720.40
5.6.160.0130.05320.54
5.6.150.0170.07018.26
5.6.140.0130.07318.27
5.6.130.0000.07018.23
5.6.120.0200.07021.02
5.6.110.0030.04320.95
5.6.100.0100.03321.01
5.6.90.0100.06321.00
5.6.80.0100.07020.39
5.5.350.0100.08320.44
5.5.340.0070.05718.07
5.5.330.0070.07720.31
5.5.320.0500.07720.51
5.5.310.0300.06320.27
5.5.300.0100.07718.01
5.5.290.0000.08717.96
5.5.280.0100.04320.80
5.5.270.0030.04020.87
5.5.260.0170.07020.89
5.5.250.0130.07720.71
5.5.240.3900.04020.15

preferences:
52.88 ms | 401 KiB | 5 Q