3v4l.org

run code in 200+ PHP versions simultaneously
<?php function foo(iterable $bar = null) { } foo(array()); foo(null);

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)
7.4.00.0060.00914.56
7.3.100.0060.01014.62
7.3.90.0050.00814.67
7.3.80.0000.01414.42
7.3.70.0110.00414.58
7.3.60.0090.00314.51
7.3.50.0070.00714.34
7.3.40.0100.00314.55
7.3.30.0050.00814.79
7.3.20.0070.00714.68
7.3.10.0070.00714.81
7.3.00.0000.01514.91
7.2.230.0070.01314.67
7.2.220.0110.00814.77
7.2.210.0090.00715.09
7.2.200.0140.00014.90
7.2.190.0070.00714.91
7.2.180.0120.00314.82
7.2.170.0040.01114.70
7.2.160.0110.00315.00
7.2.150.0100.00614.53
7.2.140.0060.01014.70
7.2.130.0070.00714.89
7.2.120.0030.01014.92
7.2.110.0060.00914.89
7.2.100.0120.00314.77
7.2.90.0070.01415.04
7.2.80.0150.00815.07
7.2.70.0140.00514.93
7.2.60.0070.01015.72
7.2.50.0070.01115.69
7.2.40.0330.01416.40
7.2.30.0410.01116.46
7.2.20.0440.01316.28
7.2.10.0500.01316.42
7.2.00.0540.01316.33
7.1.320.0170.00313.54
7.1.310.0100.00513.63
7.1.300.0030.01013.81
7.1.290.0060.00613.75
7.1.280.0110.00313.73
7.1.270.0100.00313.36
7.1.260.0090.01213.46
7.1.250.0060.00613.84
7.1.240.0190.00713.61
7.1.230.0210.00013.70
7.1.220.0090.00913.54
7.1.210.0040.01613.49
7.1.200.0100.00514.56
7.1.190.0180.00513.86
7.1.180.0090.01213.58
7.1.170.0110.01113.43
7.1.160.0540.01214.95
7.1.150.0700.01015.12
7.1.140.0620.01315.15
7.1.130.0610.00715.32
7.1.120.0490.01515.20
7.1.110.0550.00914.81
7.1.100.0550.00814.65
7.1.90.0810.00714.67
7.1.80.0490.00714.78
7.1.70.0760.00914.17
7.1.60.0710.01123.30
7.1.50.0860.01323.21
7.1.40.0650.01123.05
7.1.30.0870.01023.06
7.1.20.0500.01023.20
7.1.10.0400.01114.16
7.1.00.0520.00914.13
7.0.330.0140.00613.36
7.0.320.0120.00613.38
7.0.310.0120.01013.34
7.0.300.0130.00913.30
7.0.290.0580.01214.79
7.0.280.0170.00313.45
7.0.270.0560.01414.77
7.0.260.0500.00814.85
7.0.250.0550.01014.60
7.0.240.0540.01014.60
7.0.230.0490.00814.29
7.0.220.0390.01214.46
7.0.210.1240.00713.91
7.0.200.1050.01214.22
7.0.190.0670.01214.18
7.0.180.0480.01013.93
7.0.170.0870.00813.93
7.0.160.0650.00914.07
7.0.150.0490.00913.93
7.0.140.0630.00713.92
7.0.130.0510.01013.87
7.0.120.0560.00813.94
7.0.110.0510.01113.88
7.0.100.0330.01113.99
7.0.90.0420.01013.93
7.0.80.0380.00713.88
7.0.70.0430.00813.90
7.0.60.0330.01113.93
7.0.50.0310.00913.96
7.0.40.0450.00714.09
7.0.30.0520.00613.86
7.0.20.0690.00914.07
7.0.10.0400.00713.92
7.0.00.0410.00913.97
5.6.400.0190.00314.20
5.6.390.0120.00614.32
5.6.380.0090.00913.86
5.6.370.0130.01413.80
5.6.360.0140.00713.98
5.6.350.0120.00614.05
5.6.340.0120.00913.82
5.6.330.0150.00513.73
5.6.320.0150.00914.07
5.6.310.0190.00414.28
5.6.300.0170.03317.47
5.6.290.0170.03717.28
5.6.280.0170.03917.45
5.6.270.0170.04017.43
5.6.260.0160.03917.40
5.6.250.0160.04117.65
5.6.240.0220.03617.47
5.6.230.0170.03517.42
5.6.220.0160.03317.46
5.6.210.0180.04317.31
5.6.200.0120.03717.51
5.6.190.0120.03517.42
5.6.180.0190.04017.36
5.6.170.0210.04117.29
5.6.160.0170.03117.44
5.6.150.0150.03317.51
5.6.140.0160.03917.53
5.6.130.0150.03217.70
5.6.120.0090.03817.53
5.6.110.0140.03617.46
5.6.100.0130.04117.42
5.6.90.0170.03617.55
5.6.80.0200.03117.08
5.6.70.0170.03117.06
5.6.60.0150.04216.99
5.6.50.0130.03717.03
5.6.40.0190.03717.01
5.6.30.0160.03217.07
5.6.20.0130.03816.92
5.6.10.0150.03317.05
5.6.00.0150.03216.92
5.5.380.0160.03515.63
5.5.370.0180.03415.68
5.5.360.0150.03215.63
5.5.350.0170.03115.71
5.5.340.0180.02916.15
5.5.330.0160.03316.01
5.5.320.0150.04315.87
5.5.310.0160.03415.83
5.5.300.0170.02816.05
5.5.290.0150.03216.08
5.5.280.0160.03116.02
5.5.270.0130.03516.06
5.5.260.0150.03816.15
5.5.250.0130.03815.90
5.5.240.0110.03815.69
5.5.230.0140.03715.56
5.5.220.0170.03715.56
5.5.210.0160.02815.79
5.5.200.0170.03415.76
5.5.190.0140.03215.65
5.5.180.0170.04115.77
5.5.170.0090.00913.93
5.5.160.0140.03815.46
5.5.150.0180.02715.78
5.5.140.0140.04115.74
5.5.130.0150.03115.70
5.5.120.0130.03115.66
5.5.110.0140.03715.46
5.5.100.0180.02815.79
5.5.90.0160.03215.65
5.5.80.0150.03015.48
5.5.70.0110.04515.65
5.5.60.0150.02815.62
5.5.50.0130.03215.78
5.5.40.0150.03415.58
5.5.30.0210.02515.26
5.5.20.0170.03215.56
5.5.10.0150.03715.54
5.5.00.0160.03815.52
5.4.450.0110.03014.99
5.4.440.0100.03515.16
5.4.430.0140.03115.11
5.4.420.0150.04114.98
5.4.410.0160.03615.17
5.4.400.0120.02914.82
5.4.390.0130.03614.71
5.4.380.0130.03414.80
5.4.370.0140.03314.69
5.4.360.0120.03314.92
5.4.350.0170.03414.84
5.4.340.0140.02814.87
5.4.330.0100.00711.06
5.4.320.0160.03714.92
5.4.310.0170.02815.05
5.4.300.0150.03114.88
5.4.290.0140.03614.66
5.4.280.0080.03314.91
5.4.270.0090.03114.93
5.4.260.0180.03214.87
5.4.250.0120.03314.83
5.4.240.0140.02714.85
5.4.230.0120.02915.03
5.4.220.0100.03414.76
5.4.210.0120.03914.88
5.4.200.0160.03014.96
5.4.190.0140.02914.96
5.4.180.0150.02914.65
5.4.170.0100.03114.85
5.4.160.0120.03214.67
5.4.150.0150.03214.94
5.4.140.0180.03013.53
5.4.130.0100.03213.66
5.4.120.0110.03013.75
5.4.110.0090.03813.56
5.4.100.0140.02713.77
5.4.90.0090.03013.60
5.4.80.0090.02813.66
5.4.70.0160.03213.53
5.4.60.0100.02913.60
5.4.50.0120.03113.72
5.4.40.0110.03013.74
5.4.30.0120.02813.52
5.4.20.0120.02913.63
5.4.10.0150.02713.71
5.4.00.0090.03813.53
5.3.290.0070.03712.64
5.3.280.0100.03112.29
5.3.270.0140.03812.48
5.3.260.0090.03412.39
5.3.250.0110.03512.57
5.3.240.0150.03312.39
5.3.230.0100.03312.56
5.3.220.0110.02912.44
5.3.210.0120.03312.60
5.3.200.0100.03012.48
5.3.190.0090.03012.42
5.3.180.0090.02912.65
5.3.170.0120.02812.60
5.3.160.0110.02812.55
5.3.150.0100.02912.54
5.3.140.0110.02912.48
5.3.130.0100.03112.55
5.3.120.0130.03012.63
5.3.110.0110.03712.50
5.3.100.0090.03112.05
5.3.90.0100.03212.17
5.3.80.0160.02112.27
5.3.70.0070.03012.28
5.3.60.0110.02912.32
5.3.50.0100.02912.16
5.3.40.0060.03512.27
5.3.30.0160.03312.22
5.3.20.0070.03012.12
5.3.10.0080.02912.00
5.3.00.0120.02411.89
5.2.170.0070.02510.44
5.2.160.0100.02110.51
5.2.150.0090.02810.32
5.2.140.0080.03410.49
5.2.130.0100.02010.29
5.2.120.0040.02710.39
5.2.110.0080.02210.47
5.2.100.0120.02010.38
5.2.90.0070.02410.38
5.2.80.0060.02710.45
5.2.70.0080.02610.41
5.2.60.0080.02810.44
5.2.50.0090.02310.34
5.2.40.0110.02410.37
5.2.30.0140.02010.29
5.2.20.0110.02110.44
5.2.10.0130.02110.24
5.2.00.0120.02010.17
5.1.60.0080.0189.88
5.1.50.0080.0189.79
5.1.40.0060.0219.94
5.1.30.0090.02110.01
5.1.20.0130.02210.09
5.1.10.0080.0239.99
5.1.00.0110.02010.00
5.0.50.0060.0189.13
5.0.40.0060.0169.14
5.0.30.0040.0249.04
5.0.20.0050.0179.04
5.0.10.0080.0149.04
5.0.00.0060.0249.04
4.4.90.0050.0149.04
4.4.80.0060.0149.04
4.4.70.0070.0119.04
4.4.60.0060.0129.04
4.4.50.0030.0159.04
4.4.40.0050.0199.04
4.4.30.0040.0149.04
4.4.20.0050.0149.04
4.4.10.0070.0159.04
4.4.00.0030.0229.04
4.3.110.0090.0109.04
4.3.100.0070.0149.04
4.3.90.0030.0149.04
4.3.80.0060.0179.04
4.3.70.0080.0149.04
4.3.60.0060.0149.04
4.3.50.0060.0149.04
4.3.40.0070.0229.04
4.3.30.0050.0149.04
4.3.20.0070.0139.04
4.3.10.0060.0119.04
4.3.00.0060.0139.04