3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 1; $i <= 10; $i++) { $output = null; if ($i % 3 === 0) $output = 'Zif'; if ($i % 5 === 0) $output .= 'Zub'; if (!$output) $output = $i; echo $output . "\n"; }

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.0140.00018.30
8.3.50.0160.00322.18
8.3.40.0040.01118.50
8.3.30.0110.00318.89
8.3.20.0040.00418.73
8.3.10.0000.00823.52
8.3.00.0040.00420.99
8.2.180.0070.00716.32
8.2.170.0060.01222.96
8.2.160.0120.00319.21
8.2.150.0050.00224.18
8.2.140.0060.00324.66
8.2.130.0000.00821.04
8.2.120.0040.00426.35
8.2.110.0040.00720.38
8.2.100.0040.00818.04
8.2.90.0060.00319.17
8.2.80.0050.00317.97
8.2.70.0090.00017.63
8.2.60.0000.00817.93
8.2.50.0120.00018.10
8.2.40.0000.00720.23
8.2.30.0000.00720.59
8.2.20.0000.00717.65
8.2.10.0040.00417.99
8.2.00.0050.00318.04
8.1.280.0070.01125.92
8.1.270.0050.00323.73
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0060.00322.48
8.1.230.0080.00419.43
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0000.00917.36
8.1.190.0040.00417.22
8.1.180.0070.00018.10
8.1.170.0050.00318.49
8.1.160.0030.00318.93
8.1.150.0060.00318.82
8.1.140.0070.00019.56
8.1.130.0040.00417.64
8.1.120.0070.00017.45
8.1.110.0050.00217.39
8.1.100.0000.00717.37
8.1.90.0040.00417.47
8.1.80.0030.00317.42
8.1.70.0050.00217.40
8.1.60.0060.00317.63
8.1.50.0040.00417.41
8.1.40.0030.00517.42
8.1.30.0040.00417.57
8.1.20.0040.00417.65
8.1.10.0040.00417.34
8.1.00.0000.00717.40
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.41
8.0.270.0050.00317.26
8.0.260.0040.00417.26
8.0.250.0030.00317.01
8.0.240.0000.00716.86
8.0.230.0030.00516.81
8.0.220.0020.00516.85
8.0.210.0000.00716.77
8.0.200.0000.00816.88
8.0.190.0000.00816.84
8.0.180.0030.00316.92
8.0.170.0000.00716.95
8.0.160.0030.00616.96
8.0.150.0040.00416.79
8.0.140.0070.00016.75
8.0.130.0000.00513.33
8.0.120.0030.00516.88
8.0.110.0000.00816.91
8.0.100.0070.00016.84
8.0.90.0000.00716.77
8.0.80.0090.00716.92
8.0.70.0040.00416.90
8.0.60.0050.00216.79
8.0.50.0040.00416.75
8.0.30.0080.00916.96
8.0.20.0110.00617.40
8.0.10.0000.00716.96
8.0.00.0080.01116.70
7.4.330.0050.00015.08
7.4.320.0060.00016.50
7.4.300.0000.00616.64
7.4.290.0000.00716.51
7.4.280.0000.00716.63
7.4.270.0030.00316.36
7.4.260.0030.00316.58
7.4.250.0040.00416.51
7.4.240.0070.00016.59
7.4.230.0000.00816.53
7.4.220.0090.01016.70
7.4.210.0040.01116.62
7.4.200.0030.00316.67
7.4.160.0040.01216.41
7.4.150.0150.00317.40
7.4.140.0060.01117.86
7.4.130.0060.01116.59
7.4.120.0090.01216.49
7.4.110.0100.01616.38
7.4.100.0150.00616.61
7.4.90.0040.01316.54
7.4.80.0120.00619.39
7.4.70.0030.01316.37
7.4.60.0080.01116.36
7.4.50.0030.00716.26
7.4.40.0030.01316.41
7.4.30.0080.00816.33
7.4.00.0070.01014.80
7.3.330.0030.00313.14
7.3.320.0060.00013.25
7.3.310.0070.00016.15
7.3.300.0030.00316.32
7.3.290.0090.00716.36
7.3.280.0100.00916.35
7.3.270.0030.01517.40
7.3.260.0100.01016.32
7.3.250.0110.00816.34
7.3.240.0140.00616.52
7.3.230.0070.01016.59
7.3.210.0150.00416.64
7.3.200.0100.00716.24
7.3.190.0120.00316.62
7.3.180.0120.00316.33
7.3.170.0070.01016.55
7.3.160.0090.01016.56
7.3.120.0050.01314.89
7.3.110.0070.01014.68
7.3.100.0080.00814.96
7.3.90.0030.01214.91
7.3.80.0080.00614.81
7.3.70.0080.00514.83
7.3.60.0020.01214.75
7.3.50.0060.00614.95
7.3.40.0070.00714.79
7.3.30.0050.00614.83
7.3.20.0090.00116.50
7.3.10.0080.00816.74
7.3.00.0090.00516.54
7.2.330.0200.00316.66
7.2.320.0120.00616.61
7.2.310.0120.00616.75
7.2.300.0120.00316.42
7.2.290.0160.00016.81
7.2.250.0090.00914.84
7.2.240.0060.01014.88
7.2.230.0090.00915.03
7.2.220.0040.01315.21
7.2.210.0030.00815.21
7.2.200.0060.00714.95
7.2.190.0030.01314.80
7.2.180.0030.00714.86
7.2.170.0030.01214.94
7.2.130.0080.00416.96
7.2.120.0150.00317.07
7.2.110.0070.01016.96
7.2.100.0070.00716.89
7.2.90.0070.00716.98
7.2.80.0050.00716.70
7.2.70.0030.01216.56
7.2.60.0170.00416.70
7.2.50.0090.00616.63
7.2.40.0100.00316.69
7.2.30.0080.00816.88
7.2.20.0110.00017.00
7.2.10.0080.00816.73
7.2.00.0060.01018.11
7.1.330.0050.01015.87
7.1.320.0070.00515.98
7.1.310.0030.00815.82
7.1.300.0080.00615.73
7.1.290.0050.00715.73
7.1.280.0020.01015.79
7.1.270.0080.00515.56
7.1.260.0040.01215.59
7.1.250.0070.00315.83
7.1.200.0090.00315.64
7.1.100.0030.01018.19
7.1.70.0160.00716.94
7.1.60.0070.01720.41
7.1.00.0030.07322.28
7.0.200.0840.00314.74
7.0.60.0200.08021.73
7.0.50.0070.04717.80
7.0.40.0070.07020.21
7.0.30.0270.06720.04
7.0.20.0230.06320.02
7.0.10.0230.05320.39
7.0.00.0130.06020.16
5.6.280.0030.07721.12
5.6.210.0100.07720.51
5.6.200.0070.03718.18
5.6.190.0230.07020.72
5.6.180.0200.05320.56
5.6.170.0270.05020.55
5.6.160.0230.05320.37
5.6.150.0130.06320.32
5.6.140.0170.05720.43
5.6.130.0170.06020.42
5.6.120.0170.05720.30
5.6.110.0070.07320.42
5.6.100.0200.05020.44
5.6.90.0330.05020.12
5.6.80.0130.06019.59
5.6.70.0230.05319.59
5.6.60.0170.05319.71
5.6.50.0170.06319.81
5.6.40.0300.06019.80
5.6.30.0270.05019.79
5.6.20.0370.04719.79
5.6.10.0170.05319.77
5.6.00.0170.05719.64
5.5.350.0230.04020.31
5.5.340.0070.03717.88
5.5.330.0270.05020.43
5.5.320.0130.06020.35
5.5.310.0230.07320.33
5.5.300.0270.05320.00
5.5.290.0270.04720.24
5.5.280.0170.06720.13
5.5.270.0070.06720.16
5.5.260.0170.05720.09
5.5.250.0270.06719.76
5.5.240.0270.05019.60
5.5.230.0230.04719.42
5.5.220.0170.05719.58
5.5.210.0100.06019.50
5.5.200.0100.06019.50
5.5.190.0270.05719.40
5.5.180.0230.04719.44
5.5.160.0170.05319.48
5.5.150.0130.06019.43
5.5.140.0170.05319.47
5.5.130.0170.05319.37
5.5.120.0130.06019.35
5.5.110.0170.05319.55
5.5.100.0130.05319.48
5.5.90.0130.06319.35
5.5.80.0230.04719.25
5.5.70.0100.06019.29
5.5.60.0130.05719.56
5.5.50.0200.05019.39
5.5.40.0030.06319.46
5.5.30.0130.05319.30
5.5.20.0270.04719.26
5.5.10.0130.05719.25
5.5.00.0170.06019.55

preferences:
28.95 ms | 401 KiB | 5 Q