3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=array("", " ", 0, false, array(), "45"); $r=''; foreach($a as $i => $s) if (trim($s) == "") $r.=$i; echo $r;

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.75
8.3.50.0120.00523.00
8.3.40.0110.00418.90
8.3.30.0110.00418.95
8.3.20.0000.00720.21
8.3.10.0080.00023.65
8.3.00.0040.00419.50
8.2.180.0110.00418.29
8.2.170.0090.00922.96
8.2.160.0060.00920.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00420.97
8.2.110.0060.00320.36
8.2.100.0080.00318.09
8.2.90.0030.00619.39
8.2.80.0030.00517.97
8.2.70.0030.00517.75
8.2.60.0030.00618.05
8.2.50.0040.00418.07
8.2.40.0090.00020.07
8.2.30.0030.00717.98
8.2.20.0050.00317.72
8.2.10.0000.00717.98
8.2.00.0030.00617.79
8.1.280.0080.00825.92
8.1.270.0000.00823.91
8.1.260.0000.00726.35
8.1.250.0020.00528.09
8.1.240.0030.00622.00
8.1.230.0070.00319.12
8.1.220.0040.00417.76
8.1.210.0050.00318.77
8.1.200.0040.00417.22
8.1.190.0040.00417.48
8.1.180.0030.00618.10
8.1.170.0040.00418.56
8.1.160.0040.00422.01
8.1.150.0040.00418.87
8.1.140.0070.00317.39
8.1.130.0000.00717.74
8.1.120.0040.00417.46
8.1.110.0030.00617.41
8.1.100.0040.00417.50
8.1.90.0080.00017.45
8.1.80.0000.00717.40
8.1.70.0030.00317.32
8.1.60.0030.00617.53
8.1.50.0000.00917.52
8.1.40.0000.00917.41
8.1.30.0000.00817.56
8.1.20.0040.00417.63
8.1.10.0050.00217.54
8.1.00.0000.00817.40
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0100.00018.43
8.0.270.0000.00717.25
8.0.260.0050.00217.14
8.0.250.0030.00316.91
8.0.240.0040.00417.00
8.0.230.0000.00816.84
8.0.220.0000.00716.99
8.0.210.0080.00016.82
8.0.200.0000.00716.96
8.0.190.0080.00017.03
8.0.180.0150.00016.93
8.0.170.0000.00816.94
8.0.160.0000.00716.90
8.0.150.0070.00016.78
8.0.140.0040.00416.87
8.0.130.0060.00313.35
8.0.120.0000.00816.79
8.0.110.0030.00516.94
8.0.100.0000.00716.95
8.0.90.0000.00716.77
8.0.80.0110.00816.94
8.0.70.0060.00316.79
8.0.60.0000.00816.86
8.0.50.0040.00416.84
8.0.30.0140.00617.12
8.0.20.0120.00617.40
8.0.10.0050.00316.88
8.0.00.0090.00916.77
7.4.330.0000.00615.12
7.4.320.0030.00316.43
7.4.300.0000.00716.59
7.4.290.0030.00316.49
7.4.280.0040.00416.39
7.4.270.0000.00616.66
7.4.260.0030.00316.55
7.4.250.0030.00616.32
7.4.240.0000.00816.60
7.4.230.0070.00016.56
7.4.220.0170.00716.59
7.4.210.0030.01016.53
7.4.200.0050.00216.70
7.4.160.0060.00916.63
7.4.150.0040.01317.40
7.4.140.0110.00617.86
7.4.130.0120.00816.59
7.4.120.0050.01216.44
7.4.110.0040.01316.55
7.4.100.0060.01216.61
7.4.90.0110.00616.53
7.4.80.0130.00719.39
7.4.70.0200.00316.60
7.4.60.0040.01316.69
7.4.50.0000.00416.63
7.4.40.0140.00316.50
7.4.30.0060.01116.34
7.4.00.0110.00714.74
7.3.330.0060.00013.13
7.3.320.0000.00513.14
7.3.310.0030.00316.20
7.3.300.0030.00316.38
7.3.290.0110.00416.45
7.3.280.0080.00916.36
7.3.270.0000.01717.40
7.3.260.0090.00916.63
7.3.250.0100.00716.40
7.3.240.0080.00816.37
7.3.230.0030.01416.40
7.3.210.0100.00616.46
7.3.200.0040.01419.39
7.3.190.0160.00016.48
7.3.180.0140.00716.56
7.3.170.0110.00516.32
7.3.160.0080.01116.35
7.2.330.0070.01016.73
7.2.320.0050.01116.79
7.2.310.0090.01516.63
7.2.300.0130.00316.64
7.2.290.0120.00716.63
7.2.60.0100.00716.74
7.2.00.0000.01719.50
7.1.200.0030.00515.80
7.1.100.0030.00918.09
7.1.70.0070.00017.35
7.1.60.0120.01219.46
7.1.50.0060.00917.14
7.1.00.0030.07722.51
7.0.200.0030.00316.95
7.0.140.0030.07022.18
7.0.100.0070.08020.05
7.0.90.0000.05019.92
7.0.80.0070.08019.92
7.0.70.0030.06019.90
7.0.60.0130.07019.94
7.0.50.0070.07320.38
7.0.40.0030.04720.18
7.0.30.0170.04020.09
7.0.20.0030.08720.03
7.0.10.0130.05720.09
7.0.00.0170.06320.03
5.6.280.0000.07321.07
5.6.250.0030.09320.70
5.6.240.0030.07320.64
5.6.230.0070.04320.63
5.6.220.0000.05320.66
5.6.210.0070.08320.63
5.6.200.0130.04721.04
5.6.190.0070.07721.17
5.6.180.0100.05321.03
5.6.170.0030.05321.05
5.6.160.0030.08321.07
5.6.150.0030.06720.93
5.6.140.0070.04721.01
5.6.130.0130.07021.04
5.6.120.0130.07720.95
5.6.110.0130.07320.92
5.6.100.0030.09020.93
5.6.90.0170.07021.09
5.6.80.0130.06720.46
5.6.70.0070.03720.51
5.6.60.0030.07020.44
5.6.50.0000.08320.40
5.6.40.0130.07020.38
5.6.30.0130.07720.48
5.6.20.0070.05020.30
5.6.10.0000.04720.43
5.6.00.0070.06020.24
5.5.380.0170.06020.48
5.5.370.0070.05020.34
5.5.360.0000.07720.33
5.5.350.0070.08020.32
5.5.340.0130.07720.83
5.5.330.0030.08020.86
5.5.320.0000.06720.87
5.5.310.0200.05720.86
5.5.300.0200.07720.73
5.5.290.0130.07720.80
5.5.280.0070.07720.83
5.5.270.0100.07020.72
5.5.260.0070.08320.80
5.5.250.0030.08020.67
5.5.240.0070.04320.18
5.5.230.0100.07020.30
5.5.220.0100.04720.12
5.5.210.0030.03720.29
5.5.200.0130.07020.12
5.5.190.0130.04320.14
5.5.180.0100.05320.26
5.5.160.0100.06720.23
5.5.150.0130.07020.08
5.5.140.0170.07320.18
5.5.130.0030.07720.26
5.5.120.0030.05020.15
5.5.110.0070.07720.11
5.5.100.0070.07720.16
5.5.90.0100.03720.14
5.5.80.0030.08320.14
5.5.70.0030.09320.13
5.5.60.0070.03719.99
5.5.50.0170.06320.14
5.5.40.0070.07320.02
5.5.30.0030.05720.12
5.5.20.0170.06019.99
5.5.10.0070.06019.91
5.5.00.0130.04320.09
5.4.450.0100.08019.29
5.4.440.0030.04319.47
5.4.430.0100.06719.46
5.4.420.0070.04719.28
5.4.410.0130.07019.44
5.4.400.0030.06319.17
5.4.390.0130.07319.07
5.4.380.0100.03319.14
5.4.370.0100.05319.14
5.4.360.0200.06319.07
5.4.350.0100.07318.90
5.4.340.0030.08319.23
5.4.320.0100.07319.07
5.4.310.0030.08318.98
5.4.300.0000.08319.10
5.4.290.0070.07718.78
5.4.280.0000.08019.08
5.4.270.0030.05719.09
5.4.260.0130.04018.97
5.4.250.0130.03718.95
5.4.240.0100.04018.79
5.4.230.0070.07019.14
5.4.220.0070.07018.95
5.4.210.0070.08019.07
5.4.200.0170.06319.14
5.4.190.0170.06719.02
5.4.180.0100.05319.11
5.4.170.0100.06719.13
5.4.160.0100.03719.04
5.4.150.0130.07319.21
5.4.140.0030.06316.36
5.4.130.0030.05716.11
5.4.120.0030.06016.28
5.4.110.0030.04016.23
5.4.100.0100.06316.38
5.4.90.0100.06716.43
5.4.80.0030.04316.29
5.4.70.0000.04716.26
5.4.60.0070.05316.25
5.4.50.0030.03716.41
5.4.40.0100.03316.28
5.4.30.0130.05716.19
5.4.20.0070.07716.37
5.4.10.0070.05716.39
5.4.00.0030.04715.71
5.3.290.0070.06014.62
5.3.280.0070.04314.58
5.3.270.0000.05014.54
5.3.260.0030.04314.61
5.3.250.0070.03314.54
5.3.240.0100.04014.55
5.3.230.0100.06714.43
5.3.220.0100.06714.53
5.3.210.0100.07314.52
5.3.200.0070.08014.40
5.3.190.0000.08014.40
5.3.180.0170.06314.42
5.3.170.0070.04314.57
5.3.160.0030.05714.52
5.3.150.0070.03714.40
5.3.140.0070.07314.56
5.3.130.0130.05714.50
5.3.120.0030.08014.54
5.3.110.0070.07314.50
5.3.100.0000.08013.99
5.3.90.0070.07313.88
5.3.80.0070.03714.01
5.3.70.0030.04313.97
5.3.60.0130.06713.96
5.3.50.0030.06313.80
5.3.40.0030.05313.70
5.3.30.0170.07013.91
5.3.20.0100.07313.61
5.3.10.0000.07013.51
5.3.00.0030.08013.61
5.2.170.0000.05711.77
5.2.160.0000.06011.77
5.2.150.0030.05311.77
5.2.140.0070.05311.77
5.2.130.0100.03311.77
5.2.120.0030.03311.77
5.2.110.0030.03711.77
5.2.100.0130.05311.77
5.2.90.0030.06311.77
5.2.80.0100.06011.77
5.2.70.0030.05311.77
5.2.60.0130.05311.77
5.2.50.0070.04711.77
5.2.40.0070.06311.77
5.2.30.0030.05311.77
5.2.20.0070.03311.77
5.2.10.0070.03311.77
5.2.00.0030.03011.77
5.1.60.0030.04711.77
5.1.50.0000.02711.77
5.1.40.0030.04011.77
5.1.30.0070.05311.77
5.1.20.0070.05711.77
5.1.10.0030.05011.77
5.1.00.0070.03711.77
5.0.50.0030.04311.77
5.0.40.0030.04011.77
5.0.30.0100.05011.77
5.0.20.0070.01711.77
5.0.10.0030.03711.77
5.0.00.0030.06311.77
4.4.90.0000.03011.77
4.4.80.0000.03311.77
4.4.70.0000.03711.77
4.4.60.0070.01711.77
4.4.50.0030.01711.77
4.4.40.0000.04311.77
4.4.30.0030.01711.77
4.4.20.0030.03011.77
4.4.10.0000.02011.77
4.4.00.0070.04311.77
4.3.110.0030.02711.77
4.3.100.0000.02311.77
4.3.90.0000.03311.77
4.3.80.0070.04311.77
4.3.70.0000.03311.77
4.3.60.0030.02711.77
4.3.50.0070.01311.77
4.3.40.0030.05011.77
4.3.30.0070.03011.77
4.3.20.0000.03711.77
4.3.10.0000.03711.77
4.3.00.0000.03711.77

preferences:
40.49 ms | 401 KiB | 5 Q