3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(string $str){ var_dump("I am a string --> ", $str); } foo(false);

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.4.20.0100.01018.38
8.4.10.0040.00419.20
8.3.150.0130.00718.70
8.3.140.0070.00316.38
8.3.130.0100.00018.25
8.3.120.0050.00520.91
8.3.110.0040.00416.75
8.3.100.0070.00324.06
8.3.90.0050.00326.77
8.3.80.0030.00616.38
8.3.70.0120.00316.58
8.3.60.0030.01718.43
8.3.50.0070.01022.09
8.3.40.0040.01118.42
8.3.30.0140.00018.42
8.3.20.0000.00819.60
8.3.10.0000.00721.79
8.3.00.0030.00523.48
8.2.270.0110.00717.29
8.2.260.0050.00216.70
8.2.250.0000.00816.82
8.2.240.0040.00417.30
8.2.230.0060.00320.94
8.2.220.0040.00437.54
8.2.210.0080.00026.77
8.2.200.0000.00816.38
8.2.190.0180.00018.18
8.2.180.0090.00625.92
8.2.170.0090.00618.70
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0130.00319.11
8.2.110.0070.01019.30
8.2.100.0080.00318.63
8.2.90.0050.00317.63
8.2.80.0080.00018.48
8.2.70.0000.00917.38
8.2.60.0040.00417.91
8.2.50.0040.00418.07
8.2.40.0040.00418.10
8.2.30.0050.00217.81
8.2.20.0040.00418.00
8.2.10.0070.00017.80
8.2.00.0000.00818.05
8.1.310.0130.00616.15
8.1.300.0060.00318.22
8.1.290.0050.00530.84
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0120.00622.13
8.1.230.0070.00420.97
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0090.00017.22
8.1.190.0080.00017.23
8.1.180.0000.01218.10
8.1.170.0070.00318.41
8.1.160.0000.00718.66
8.1.150.0000.00720.25
8.1.140.0050.00319.31
8.1.130.0040.00417.25
8.1.120.0000.00717.36
8.1.110.0060.00317.30
8.1.100.0040.00417.21
8.1.90.0000.00717.29
8.1.80.0000.00717.23
8.1.70.0030.00317.24
8.1.60.0000.00917.54
8.1.50.0070.00017.32
8.1.40.0040.00417.46
8.1.30.0000.00717.43
8.1.20.0050.00217.58
8.1.10.0000.00817.39
8.1.00.0000.00917.32
8.0.300.0030.00518.77
8.0.290.0000.00816.75
8.0.280.0030.00318.24
8.0.270.0030.00518.71
8.0.260.0050.00316.82
8.0.250.0030.00316.98
8.0.240.0050.00316.88
8.0.230.0000.00716.82
8.0.220.0050.00216.86
8.0.210.0030.00316.90
8.0.200.0000.00616.97
8.0.190.0070.00016.81
8.0.180.0040.00416.88
8.0.170.0070.00016.91
8.0.160.0070.00016.88
8.0.150.0070.00016.88
8.0.140.0070.00016.76
8.0.130.0000.00513.37
8.0.120.0000.00816.85
8.0.110.0030.00316.80
8.0.100.0030.00516.79
8.0.90.0000.00816.88
8.0.80.0090.00616.94
8.0.70.0000.00816.66
8.0.60.0030.00616.78
8.0.50.0000.00816.70
8.0.30.0090.01117.06
8.0.20.0100.00817.40
8.0.10.0000.00816.95
8.0.00.0180.00316.77
7.4.330.0000.00615.55
7.4.320.0030.00316.45
7.4.300.0030.00316.50
7.4.290.0000.00716.40
7.4.280.0000.00716.36
7.4.270.0030.00316.44
7.4.260.0030.00316.41
7.4.250.0040.00416.41
7.4.240.0000.00816.53
7.4.230.0000.00716.27
7.4.220.0090.00916.52
7.4.210.0070.01416.41
7.4.200.0040.00416.61
7.4.160.0090.00716.50
7.4.150.0120.00617.40
7.4.140.0130.00517.86
7.4.130.0090.00816.39
7.4.120.0100.00916.34
7.4.110.0110.00716.48
7.4.100.0090.00916.40
7.4.90.0230.01616.34
7.4.80.0100.00719.39
7.4.70.0060.01616.36
7.4.60.0070.01116.36
7.4.50.0090.00616.27
7.4.40.0140.00316.33
7.4.30.0040.01216.34
7.4.00.0100.00714.82
7.3.330.0060.00013.18
7.3.320.0000.00513.09
7.3.310.0000.00716.17
7.3.300.0070.00016.27
7.3.290.0040.00416.22
7.3.280.0070.01016.20
7.3.270.0110.00617.40
7.3.260.0100.01016.51
7.3.250.0120.00416.38
7.3.240.0100.00916.49
7.3.230.0160.00016.24
7.3.210.0060.01116.56
7.3.200.0090.00616.17
7.3.190.0140.00416.29
7.3.180.0100.00716.55
7.3.170.0060.00916.59
7.3.160.0070.01016.25
7.2.330.0150.00316.24
7.2.320.0100.00616.55
7.2.310.0040.01216.62
7.2.300.0160.00616.52
7.2.290.0100.00616.49
7.2.60.0000.01516.70
7.2.00.0060.00619.25
7.1.200.0030.00615.66
7.1.70.0030.00317.19
7.1.60.0030.00717.21
7.1.50.0070.00316.94
7.1.40.0030.00716.57
7.1.30.0070.00416.57
7.1.20.0000.01116.70
7.1.10.0080.00016.56
7.1.00.0110.00016.71
7.0.200.0000.00916.64
7.0.190.0030.00316.66
7.0.180.0020.00516.32
7.0.170.0000.00716.40
7.0.160.0080.00016.05
7.0.150.0000.00916.21
7.0.140.0000.00816.41
7.0.130.0000.00716.52
7.0.120.0020.00516.63
7.0.110.0030.00716.53
7.0.100.0040.00416.29
7.0.90.0000.00816.29
7.0.80.0000.00816.26
7.0.70.0000.00716.42
7.0.60.0050.00216.20
7.0.50.0000.00816.27
7.0.40.0040.00414.77
7.0.30.0000.00914.77
7.0.20.0070.01014.77
7.0.10.0000.00814.77
7.0.00.0090.00614.77
5.6.300.0000.04320.82
5.6.290.0070.04920.88
5.6.280.0000.04320.98
5.6.270.0130.04320.87
5.6.260.0000.05420.88
5.6.250.0000.04621.03
5.6.240.0070.04320.84
5.6.230.0000.05520.83
5.6.220.0040.03920.85
5.6.210.0100.03620.63
5.6.200.0030.04420.87
5.6.190.0000.04620.96
5.6.180.0030.04120.82
5.6.170.0030.03920.81
5.6.160.0100.03821.00
5.6.150.0070.04920.77
5.6.140.0100.03920.93
5.6.130.0130.07420.84
5.6.120.0060.05220.96
5.6.110.0000.04620.82
5.6.100.0170.04820.84
5.6.90.0000.04820.80
5.6.80.0030.03820.21
5.6.70.0070.03720.20
5.6.60.0030.04020.30
5.6.50.0000.04520.41
5.6.40.0000.05920.31
5.6.30.0260.02920.35
5.6.20.0030.04420.35
5.6.10.0070.04020.19
5.6.00.0200.04320.38
5.5.380.0060.03917.53
5.5.370.0070.03617.65
5.5.360.0100.03317.52
5.5.350.0070.03717.40
5.5.340.0000.04817.71
5.5.330.0030.06918.18
5.5.320.0100.03318.03
5.5.310.0030.04617.70
5.5.300.0060.03618.02
5.5.290.0060.04918.06
5.5.280.0000.04518.18
5.5.270.0000.04318.08
5.5.260.0000.05118.08
5.5.250.0070.03817.84
5.5.240.0030.03717.09
5.5.230.0070.03617.41
5.5.220.0000.04717.40
5.5.210.0030.03617.39
5.5.200.0060.03417.36
5.5.190.0130.04617.05
5.5.180.0030.03717.45
5.5.160.0030.04017.47
5.5.150.0060.04217.44
5.5.140.0000.04317.38
5.5.130.0000.05217.41
5.5.120.0070.03617.48
5.5.110.0030.08417.46
5.5.100.0130.05017.43
5.5.90.0000.04717.29
5.5.80.0000.04717.29
5.5.70.0030.03717.28
5.5.60.0100.05517.37
5.5.50.0030.05117.27
5.5.40.0000.04017.10
5.5.30.0070.08117.36
5.5.20.0030.05716.98
5.5.10.0100.06917.35
5.5.00.0000.07117.40
5.4.450.0030.04519.25
5.4.440.0000.04419.33
5.4.430.0100.05919.22
5.4.420.0160.03319.49
5.4.410.0060.03919.27
5.4.400.0000.04819.14
5.4.390.0030.04319.07
5.4.380.0000.04819.00
5.4.370.0000.04018.98
5.4.360.0070.04619.07
5.4.350.0130.04919.08
5.4.340.0070.03619.14
5.4.320.0030.04719.17
5.4.310.0000.04119.14
5.4.300.0100.03318.89
5.4.290.0030.03519.23
5.4.280.0000.04019.23
5.4.270.0030.03619.09
5.4.260.0070.07319.16
5.4.250.0070.05119.20
5.4.240.0000.04918.91
5.4.230.0000.03818.98
5.4.220.0000.05719.08
5.4.210.0030.03819.13
5.4.200.0070.05918.95
5.4.190.0000.04419.20
5.4.180.0070.04018.89
5.4.170.0000.07718.91
5.4.160.0070.06918.90
5.4.150.0100.03119.04
5.4.140.0000.04016.61
5.4.130.0070.03316.59
5.4.120.0130.03316.68
5.4.110.0000.05216.75
5.4.100.0030.07716.42
5.4.90.0030.03816.78
5.4.80.0060.03216.73
5.4.70.0030.03816.69
5.4.60.0100.05716.71
5.4.50.0000.03816.73
5.4.40.0000.03816.66
5.4.30.0000.04116.41
5.4.20.0000.04016.38
5.4.10.0000.03816.47
5.4.00.0070.03016.02
5.3.290.0230.03014.87
5.3.280.0030.03514.85
5.3.270.0030.07714.78
5.3.260.0030.05014.86
5.3.250.0000.06814.78
5.3.240.0030.07114.86
5.3.230.0000.03914.78
5.3.220.0000.04214.78
5.3.210.0060.05414.78
5.3.200.0170.04014.91
5.3.190.0000.04114.84
5.3.180.0070.03614.83
5.3.170.0030.03514.78
5.3.160.0060.04514.82
5.3.150.0030.03714.78
5.3.140.0030.04014.82
5.3.130.0030.03814.84
5.3.120.0100.04114.78
5.3.110.0000.04914.78
5.3.100.0070.03014.78
5.3.90.0030.03714.78
5.3.80.0070.03314.78
5.3.70.0060.03214.78
5.3.60.0000.04014.78
5.3.50.0170.04014.78
5.3.40.0000.03714.78
5.3.30.0030.03414.78
5.3.20.0000.04014.78
5.3.10.0000.04014.78
5.3.00.0030.03814.78
5.2.170.0030.03914.78
5.2.160.0030.03114.78
5.2.150.0000.04114.78
5.2.140.0030.06414.78
5.2.130.0060.02814.78
5.2.120.0030.03114.78
5.2.110.0030.04314.78
5.2.100.0070.02814.80
5.2.90.0000.06914.80
5.2.80.0100.05014.80
5.2.70.0060.02514.80
5.2.60.0030.02914.80
5.2.50.0000.03714.80
5.2.40.0070.02714.80
5.2.30.0000.03314.80
5.2.20.0030.03614.80
5.2.10.0030.03214.80
5.2.00.0030.02914.80
5.1.60.0040.02914.80
5.1.50.0000.03014.80
5.1.40.0030.03614.80
5.1.30.0000.03014.80
5.1.20.0060.02614.80
5.1.10.0000.02614.80
5.1.00.0180.02814.80
5.0.50.0000.05114.80
5.0.40.0000.02314.80
5.0.30.0000.03214.80
5.0.20.0060.01514.80
5.0.10.0000.02414.80
5.0.00.0000.04014.80
4.4.90.0030.01514.80
4.4.80.0030.01314.80
4.4.70.0030.01514.80
4.4.60.0030.03714.80
4.4.50.0000.02314.80
4.4.40.0000.02614.80
4.4.30.0040.02914.80
4.4.20.0030.02014.80
4.4.10.0030.02714.80
4.4.00.0070.05014.80
4.3.110.0060.01614.80
4.3.100.0000.01714.80
4.3.90.0000.01714.80
4.3.80.0040.02214.80
4.3.70.0000.01714.80
4.3.60.0030.01414.80
4.3.50.0000.01714.80
4.3.40.0030.02414.80
4.3.30.0030.01314.80
4.3.20.0000.01914.80
4.3.10.0030.01314.80
4.3.00.0000.01814.80

preferences:
30.23 ms | 403 KiB | 5 Q