3v4l.org

run code in 300+ PHP versions simultaneously
<?php $chars = array(0,1,2,3,4,5,6,7,8,9); $serial = ''; $max = count($chars)-1; for($j=0;$j<20;$j++){ for($i=0;$i<20;$i++){ $serial .= (!($i % 5) && $i ? '-' : '').$chars[rand(0, $max)]; } echo $serial.'\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)
7.4.10.0070.01415.16
7.4.00.0000.01514.95
7.3.130.0030.01314.95
7.3.120.0040.01314.80
7.3.110.0100.01014.96
7.3.100.0060.00314.89
7.3.90.0060.01014.91
7.3.80.0070.01014.94
7.3.70.0030.01415.02
7.3.60.0120.00314.64
7.3.50.0090.00614.79
7.3.40.0070.00714.67
7.3.30.0070.00715.04
7.3.20.0100.00316.89
7.3.10.0080.00816.70
7.3.00.0120.00316.78
7.2.260.0030.01015.32
7.2.250.0090.01015.27
7.2.240.0110.00715.09
7.2.230.0090.00914.91
7.2.220.0050.00815.34
7.2.210.0030.01414.82
7.2.200.0070.01014.89
7.2.190.0080.00315.04
7.2.180.0090.00615.21
7.2.170.0080.00815.23
7.2.160.0040.01115.09
7.2.150.0040.01116.98
7.2.140.0070.01017.03
7.2.130.0060.00917.05
7.2.120.0040.00816.96
7.2.110.0090.00916.89
7.2.100.0040.01816.93
7.2.90.0040.01517.16
7.2.80.0060.01017.15
7.2.70.0000.01016.99
7.2.60.0060.00617.07
7.2.50.0070.00717.00
7.2.40.0060.01016.93
7.2.30.0070.00717.11
7.2.20.0060.00616.74
7.2.10.0070.00717.00
7.2.00.0030.00818.13
7.1.330.0060.00616.00
7.1.320.0060.00615.75
7.1.310.0080.00415.89
7.1.300.0070.00715.84
7.1.290.0030.01015.88
7.1.280.0040.00815.77
7.1.270.0060.00916.00
7.1.260.0030.01215.98
7.1.250.0060.00615.98
7.1.240.0100.01015.86
7.1.230.0030.01315.81
7.1.220.0030.01416.05
7.1.210.0060.00615.77
7.1.200.0060.00615.80
7.1.190.0110.00015.72
7.1.180.0090.00615.93
7.1.170.0090.00915.59
7.1.160.0120.00315.83
7.1.150.0080.00315.74
7.1.140.0070.01015.98
7.1.130.0000.01415.64
7.1.120.0070.00715.93
7.1.110.0000.01515.79
7.1.100.0130.00016.04
7.1.90.0090.00615.92
7.1.80.0090.00615.93
7.1.70.0040.00516.36
7.1.60.0090.01117.53
7.1.50.0100.00825.32
7.1.40.0030.00616.05
7.1.30.0000.01815.71
7.1.20.0100.00615.62
7.1.10.0030.00915.96
7.1.00.0050.04319.14
7.0.330.0000.01115.63
7.0.320.0070.01015.17
7.0.310.0040.00715.55
7.0.300.0040.01115.14
7.0.290.0040.00415.28
7.0.280.0070.00715.38
7.0.270.0060.00315.39
7.0.260.0040.00715.48
7.0.250.0070.00315.40
7.0.240.0060.01015.58
7.0.230.0090.00615.53
7.0.220.0120.00315.26
7.0.210.0030.00715.38
7.0.200.0050.00316.11
7.0.190.0080.00815.55
7.0.180.0030.01015.54
7.0.170.0040.01115.45
7.0.160.0000.01715.32
7.0.150.0100.00315.51
7.0.140.0030.04018.83
7.0.130.0000.01315.32
7.0.120.0080.00815.42
7.0.110.0140.00015.27
7.0.100.0090.00615.55
7.0.90.0040.00815.46
7.0.80.0040.00815.32
7.0.70.0070.01015.50
7.0.60.0150.03717.66
7.0.50.0030.03016.75
7.0.40.0110.03816.67
7.0.30.0350.03616.90
7.0.20.0220.02716.92
7.0.10.0150.04316.78
7.0.00.0080.03816.82
5.6.400.0060.00914.63
5.6.390.0030.01014.64
5.6.380.0060.00714.19
5.6.370.0070.01014.25
5.6.360.0040.01514.64
5.6.350.0070.00714.27
5.6.340.0030.01314.33
5.6.330.0030.01014.51
5.6.320.0060.01014.30
5.6.310.0070.00714.40
5.6.300.0040.01114.47
5.6.290.0030.01014.44
5.6.280.0050.04117.79
5.6.270.0070.01014.73
5.6.260.0060.00914.57
5.6.250.0040.01214.68
5.6.240.0040.00814.50
5.6.230.0030.00914.50
5.6.220.0070.01014.32
5.6.210.0060.03617.38
5.6.200.0040.04216.29
5.6.190.0030.04117.51
5.6.180.0210.03817.60
5.6.170.0180.02217.45
5.6.160.0070.03617.40
5.6.150.0050.03516.31
5.6.140.0090.04416.20
5.6.130.0020.04316.27
5.6.120.0070.03817.61
5.6.110.0100.04217.56
5.6.100.0040.03117.68
5.6.90.0050.04717.66
5.6.80.0060.03217.42
5.6.70.2370.02517.36
5.6.60.0060.00614.34
5.6.50.0070.01314.11
5.6.40.0060.00314.06
5.6.30.0040.01114.18
5.6.20.0090.00614.55
5.6.10.0030.00914.44
5.6.00.0060.00614.33
5.5.380.0040.00814.41
5.5.370.0070.00414.56
5.5.360.0030.00914.35
5.5.350.0030.04817.30
5.5.340.0120.04016.34
5.5.330.0110.04317.21
5.5.320.0100.03217.43
5.5.310.0250.02717.26
5.5.300.0050.04416.16
5.5.290.0030.03616.16
5.5.280.0110.03517.63
5.5.270.0050.02317.53
5.5.260.0080.04717.59
5.5.250.0050.04417.51
5.5.240.0020.03617.22
5.5.230.0080.00314.44
5.5.220.0030.00914.13
5.5.210.0070.01314.30
5.5.200.0050.00514.19
5.5.190.0030.01014.54
5.5.180.0060.00914.30
5.5.170.0060.00614.14
5.5.160.0030.00814.05
5.5.150.0030.00714.51
5.5.140.0030.01214.15
5.5.130.0090.00614.11
5.5.120.0040.00814.38
5.5.110.0090.00614.35
5.5.100.0000.01614.34
5.5.90.0080.00814.45
5.5.80.0060.00614.40
5.5.70.0110.00414.39
5.5.60.0090.00314.44
5.5.50.0070.00414.40
5.5.40.0000.01614.27
5.5.30.0030.01014.35
5.5.20.0030.01314.58
5.5.10.0030.00914.38
5.5.00.0030.00614.28
5.4.450.0180.03815.39
5.4.440.1800.02215.30
5.4.430.0080.03615.41
5.4.420.0160.02515.44
5.4.410.0170.02515.34
5.4.400.0130.02315.24
5.4.390.1610.02615.24
5.4.380.0190.02215.23
5.4.370.0130.03215.27
5.4.360.0210.02515.27
5.4.350.0170.02615.26
5.4.340.0040.03815.26
5.4.330.0030.00311.38
5.4.320.0040.02611.92
5.4.310.0020.02311.92
5.4.300.0020.02511.92
5.4.290.0040.02411.92
5.4.280.0030.02011.87
5.4.270.0030.02211.87
5.4.260.0050.02411.87
5.4.250.0040.02311.87
5.4.240.0050.02311.87
5.4.230.0040.02511.87
5.4.220.0040.02411.86
5.4.210.0070.02011.87
5.4.200.0040.02011.87
5.4.190.0080.01911.86
5.4.180.0050.02011.86
5.4.170.0050.02211.87
5.4.160.0050.01911.87
5.4.150.0040.02211.86
5.4.140.0050.02211.71
5.4.130.0050.01911.70
5.4.120.0020.02511.68
5.4.110.0060.02111.68
5.4.100.0050.02011.68
5.4.90.0050.02211.68
5.4.80.0050.02311.68
5.4.70.0070.01611.68
5.4.60.0070.01811.68
5.4.50.0040.02211.68
5.4.40.0080.01711.67
5.4.30.0050.01911.67
5.4.20.0020.02311.67
5.4.10.0040.02211.67
5.4.00.0030.02211.41

preferences:
43.04 ms | 401 KiB | 5 Q