3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1) ; function foo(int $foo) { echo $foo; } foo(1); foo('hi');

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.0150.00616.88
8.3.50.0120.00318.00
8.3.40.0100.00718.79
8.3.30.0070.00718.71
8.3.20.0070.00020.04
8.3.10.0070.00021.73
8.3.00.0080.00019.74
8.2.180.0170.00316.63
8.2.170.0140.00322.96
8.2.160.0100.01020.39
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0050.00319.19
8.2.120.0090.00026.35
8.2.110.0000.00922.07
8.2.100.0040.00717.80
8.2.90.0040.00419.23
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0000.00917.93
8.2.50.0050.00318.07
8.2.40.0040.00422.04
8.2.30.0040.00420.68
8.2.20.0040.00417.64
8.2.10.0020.00518.10
8.2.00.0050.00218.05
8.1.280.0100.01025.92
8.1.270.0090.00020.33
8.1.260.0040.00428.09
8.1.250.0050.00328.09
8.1.240.0000.00923.95
8.1.230.0030.00719.16
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0000.00917.23
8.1.180.0000.00718.10
8.1.170.0080.00018.63
8.1.160.0050.00220.63
8.1.150.0040.00418.81
8.1.140.0040.00419.34
8.1.130.0040.00417.45
8.1.120.0040.00417.30
8.1.110.0050.00317.30
8.1.100.0040.00417.35
8.1.90.0000.00717.41
8.1.80.0000.00917.20
8.1.70.0000.00817.29
8.1.60.0030.00517.42
8.1.50.0030.00517.41
8.1.40.0040.00417.41
8.1.30.0030.00517.42
8.1.20.0040.00417.57
8.1.10.0030.00517.39
8.1.00.0030.00517.45
8.0.300.0070.00018.77
8.0.290.0000.00716.88
8.0.280.0070.00018.43
8.0.270.0020.00517.26
8.0.260.0060.00017.17
8.0.250.0030.00317.01
8.0.240.0000.00717.06
8.0.230.0070.00016.94
8.0.220.0040.00416.75
8.0.210.0030.00316.82
8.0.200.0040.00416.91
8.0.190.0040.00716.89
8.0.180.0030.00516.79
8.0.170.0050.00316.91
8.0.160.0040.00316.73
8.0.150.0000.00716.79
8.0.140.0040.00416.72
8.0.130.0060.00013.35
8.0.120.0070.00016.80
8.0.110.0080.00016.91
8.0.100.0040.00416.91
8.0.90.0070.00016.78
8.0.80.0030.01216.79
8.0.70.0040.00416.77
8.0.60.0070.00016.76
8.0.50.0000.00716.75
8.0.30.0130.01116.96
8.0.20.0090.00917.40
8.0.10.0050.00217.00
8.0.00.0130.00716.84
7.4.330.0000.00516.85
7.4.320.0030.00316.34
7.4.300.0060.00016.55
7.4.290.0030.00316.44
7.4.280.0040.00416.41
7.4.270.0030.00316.41
7.4.260.0030.00316.50
7.4.250.0000.00716.47
7.4.240.0020.00616.44
7.4.230.0040.00416.23
7.4.220.0080.01216.52
7.4.210.0030.01016.41
7.4.200.0030.00316.53
7.4.160.0150.00016.40
7.4.150.0070.01017.40
7.4.140.0110.00817.86
7.4.130.0150.00616.57
7.4.120.0060.01216.56
7.4.110.0130.01016.65
7.4.100.0060.01116.45
7.4.90.0070.01016.58
7.4.80.0110.00819.39
7.4.70.0060.01516.31
7.4.60.0100.00616.48
7.4.50.0100.00716.36
7.4.40.0100.00716.51
7.4.30.0060.01516.63
7.4.10.0130.00314.80
7.4.00.0080.01014.71
7.3.330.0020.00213.33
7.3.320.0000.00713.38
7.3.310.0060.00316.40
7.3.300.0060.00016.36
7.3.290.0030.01116.36
7.3.280.0080.01116.35
7.3.270.0040.01917.40
7.3.260.0150.00916.33
7.3.250.0080.01216.36
7.3.240.0110.00816.32
7.3.230.0070.01016.39
7.3.210.0060.00916.44
7.3.200.0070.01016.39
7.3.190.0110.00516.65
7.3.180.0020.01416.43
7.3.170.0070.01016.41
7.3.160.0140.00816.37
7.3.130.0070.01114.59
7.3.120.0030.01415.04
7.3.110.0120.00614.64
7.3.100.0070.00714.89
7.3.90.0130.00314.75
7.3.80.0030.00614.93
7.3.70.0070.00714.94
7.3.60.0060.00614.96
7.3.50.0120.00314.78
7.3.40.0030.00614.83
7.3.30.0100.00314.92
7.3.20.0070.00716.63
7.3.10.0030.00616.46
7.3.00.0040.00416.70
7.2.330.0140.00716.52
7.2.320.0090.01116.67
7.2.310.0170.00016.59
7.2.300.0160.00816.35
7.2.290.0030.01416.66
7.2.260.0060.01214.96
7.2.250.0060.01214.91
7.2.240.0070.00714.81
7.2.230.0120.00615.11
7.2.220.0120.00315.11
7.2.210.0040.00814.70
7.2.200.0070.00714.73
7.2.190.0110.00414.85
7.2.180.0000.01015.03
7.2.170.0090.00614.96
7.2.160.0060.00315.04
7.2.150.0030.00616.67
7.2.140.0060.00916.88
7.2.130.0030.00616.67
7.2.120.0060.00616.86
7.2.110.0060.01216.88
7.2.100.0030.01416.87
7.2.90.0090.00616.89
7.2.80.0060.00316.88
7.2.70.0000.01016.97
7.2.60.0060.00816.73
7.2.50.0090.00616.78
7.2.40.0070.00716.62
7.2.30.0060.00616.85
7.2.20.0030.00916.96
7.2.10.0080.00816.79
7.2.00.0060.00818.10
7.1.330.0100.00315.74
7.1.320.0070.00715.61
7.1.310.0070.00315.90
7.1.300.0060.00915.57
7.1.290.0030.00615.79
7.1.280.0120.00315.59
7.1.270.0030.00615.75
7.1.260.0040.00815.78
7.1.250.0040.00715.74
7.1.240.0110.00615.77
7.1.230.0090.00915.93
7.1.220.0060.00615.75
7.1.210.0030.00715.54
7.1.200.0070.00715.62
7.1.190.0040.00815.48
7.1.180.0000.01015.89
7.1.170.0070.00315.74
7.1.160.0090.00315.90
7.1.150.0040.01115.77
7.1.140.0090.00915.70
7.1.130.0030.01315.63
7.1.120.0100.00315.73
7.1.110.0120.00315.91
7.1.100.0130.01016.79
7.1.90.0030.01015.79
7.1.80.0040.00715.66
7.1.70.0020.00916.47
7.1.60.0110.00917.65
7.1.50.0040.00816.36
7.1.40.0100.00315.95
7.1.30.0030.00915.68
7.1.20.0000.01415.45
7.1.10.0070.00715.53
7.1.00.0030.04019.05
7.0.330.0030.00715.34
7.0.320.0090.00315.28
7.0.310.0060.00615.31
7.0.300.0000.00915.15
7.0.290.0000.01215.11
7.0.280.0040.01215.45
7.0.270.0030.01315.31
7.0.260.0030.00715.29
7.0.250.0040.01115.50
7.0.240.0140.00015.34
7.0.230.0060.00615.49
7.0.220.0040.01115.32
7.0.210.0040.01115.50
7.0.200.0000.01115.95
7.0.190.0070.00715.27
7.0.180.0110.00415.49
7.0.170.0000.01015.25
7.0.160.0060.00915.34
7.0.150.0060.00615.39
7.0.140.0060.00615.46
7.0.130.0040.01115.43
7.0.120.0090.00615.41
7.0.110.0070.00715.31
7.0.100.0040.00415.23
7.0.90.0060.00815.47
7.0.80.0080.00415.51
7.0.70.0070.00715.46
7.0.60.0090.03718.55
7.0.50.0040.02716.68
7.0.40.0050.05016.82
7.0.30.0140.04716.76
7.0.20.0250.03816.74
7.0.10.0180.03616.88
7.0.00.0050.04316.81
5.6.400.0080.00813.83
5.6.390.0040.00814.28
5.6.380.0040.00714.16
5.6.370.0090.00314.18
5.6.360.0070.00714.29
5.6.350.0000.00814.36
5.6.340.0060.00614.19
5.6.330.0000.01013.79
5.6.320.0070.00714.33
5.6.310.0000.01513.85
5.6.300.0000.01314.29
5.6.290.0070.00714.09
5.6.280.0000.02417.69
5.6.270.0090.00614.04
5.6.260.0030.00714.27
5.6.250.0070.00713.95
5.6.240.0030.01314.03
5.6.230.0040.00713.86
5.6.220.0100.00314.09
5.6.210.0040.04517.17
5.6.200.0090.03216.23
5.6.190.0110.03717.32
5.6.180.0150.04817.22
5.6.170.0180.02317.40
5.6.160.0120.04217.40
5.6.150.0050.02516.08
5.6.140.0060.04516.11
5.6.130.0080.02816.21
5.6.120.0100.04017.64
5.6.110.0050.04617.38
5.6.100.0080.04217.61
5.6.90.0080.04417.45
5.6.80.0080.02417.14
5.6.70.0030.00713.96
5.6.60.0080.00814.20
5.6.50.0030.00913.70
5.6.40.0000.01113.79
5.6.30.0040.00814.04
5.6.20.0000.01014.30
5.6.10.0070.00714.13
5.6.00.0070.00713.95
5.5.380.0100.00714.02
5.5.370.0030.00613.99
5.5.360.0040.00813.92
5.5.350.0080.04117.14
5.5.340.0040.04515.94
5.5.330.0100.04317.20
5.5.320.0230.03817.29
5.5.310.0150.03417.21
5.5.300.0090.04115.96
5.5.290.0060.02516.07
5.5.280.0060.02617.60
5.5.270.0070.02317.31
5.5.260.0070.04017.31
5.5.250.0040.04617.34
5.5.240.0080.02617.10
5.5.230.0030.00613.79
5.5.220.0030.01213.69
5.5.210.0090.00313.86
5.5.200.0040.00813.81
5.5.190.0070.00713.73
5.5.180.0040.01114.29
5.5.170.0040.00713.89
5.5.160.0100.00314.01
5.5.150.0000.00913.75
5.5.140.0030.00713.74
5.5.130.0030.00614.08
5.5.120.0090.00013.85
5.5.110.0130.00013.61
5.5.100.0060.00613.52
5.5.90.0090.00313.80
5.5.80.0060.00313.89
5.5.70.0080.00814.11
5.5.60.0000.01713.74
5.5.50.0060.00913.90
5.5.40.0030.00613.91
5.5.30.0060.00913.87
5.5.20.0040.01113.76
5.5.10.0000.01513.66
5.5.00.0090.00314.13

preferences:
44.36 ms | 400 KiB | 5 Q