3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 0; while($x < 20) { $red = rand(0,61); $a_z_10 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"; $r_char = $a_z_10[$red]; $red = rand(0,61); $g1_char = $a_z_10[$red]; $red = rand(0,61); $g2_char = $a_z_10[$red]; $red = rand(0,61); $g3_char = $a_z_10[$red]; $string = $r_char . $g1_char . $g2_char . $g3_char; echo '<a href="http://puu.sh/' . $string . '">http://puu.sh/' . $string . '</a><br />'; $x++; } ?>

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.0040.01514.91
7.4.00.0090.00914.92
7.3.130.0100.01014.93
7.3.120.0120.00614.70
7.3.110.0130.00614.86
7.3.100.0030.01314.88
7.3.90.0100.00614.83
7.3.80.0100.00415.09
7.3.70.0040.01115.02
7.3.60.0040.00414.91
7.3.50.0080.00414.84
7.3.40.0030.00614.84
7.3.30.0090.00914.62
7.3.20.0070.01016.49
7.3.10.0070.00616.57
7.3.00.0100.00416.43
7.2.260.0110.00815.33
7.2.250.0070.01115.13
7.2.240.0000.01815.25
7.2.230.0070.01015.36
7.2.220.0030.01314.78
7.2.210.0080.00815.07
7.2.200.0070.00714.94
7.2.190.0060.00615.22
7.2.180.0060.00915.02
7.2.170.0120.00315.14
7.2.160.0130.00315.05
7.2.150.0060.00916.94
7.2.140.0070.01117.06
7.2.130.0060.00816.77
7.2.120.0100.00716.87
7.2.110.0080.00916.63
7.2.100.0080.00816.76
7.2.90.0070.01016.62
7.2.80.0080.01016.83
7.2.70.0120.00416.86
7.2.60.0050.01016.68
7.2.50.0070.01016.82
7.2.40.0080.00816.87
7.2.30.0050.01016.75
7.2.20.0050.00916.79
7.2.10.0030.01416.76
7.2.00.0000.01217.82
7.1.330.0110.00716.04
7.1.320.0030.01015.66
7.1.310.0100.00715.71
7.1.300.0030.00815.51
7.1.290.0070.01015.84
7.1.280.0090.00316.04
7.1.270.0070.01015.89
7.1.260.0000.00915.68
7.1.250.0060.00815.62
7.1.240.0070.01115.70
7.1.230.0040.00715.63
7.1.220.0030.01415.71
7.1.210.0030.00915.85
7.1.200.0000.01515.85
7.1.190.0030.01315.80
7.1.180.0060.00915.54
7.1.170.0030.00716.01
7.1.160.0110.00315.97
7.1.150.0030.00615.95
7.1.140.0100.00315.76
7.1.130.0100.00615.95
7.1.120.0040.00415.69
7.1.110.0060.00915.70
7.1.100.0090.00616.02
7.1.90.0100.00316.02
7.1.80.0120.00315.87
7.1.70.0090.00416.52
7.1.60.0120.00717.50
7.1.50.0100.00916.42
7.1.40.0040.00815.82
7.1.30.0070.00615.86
7.1.20.0070.00715.70
7.1.10.0000.01015.83
7.1.00.0060.03819.16
7.0.330.0080.00815.43
7.0.320.0030.01115.42
7.0.310.0040.00715.15
7.0.300.0140.00315.60
7.0.290.0040.01115.16
7.0.280.0120.00315.50
7.0.270.0000.01015.54
7.0.260.0030.01015.55
7.0.250.0070.00715.39
7.0.240.0090.00915.36
7.0.230.0030.00615.52
7.0.220.0040.00715.36
7.0.210.0100.00315.40
7.0.200.0020.01016.19
7.0.190.0040.00715.58
7.0.180.0060.00915.26
7.0.170.0070.00715.50
7.0.160.0080.00415.37
7.0.150.0100.00315.66
7.0.140.0030.04218.60
7.0.130.0040.00815.38
7.0.120.0000.01115.64
7.0.110.0030.01015.29
7.0.100.0030.04017.61
7.0.90.0070.04717.55
7.0.80.0050.04217.72
7.0.70.0050.04717.65
7.0.60.0080.04317.67
7.0.50.0050.04417.98
7.0.40.0050.04016.77
7.0.30.0030.03716.76
7.0.20.0020.04516.77
7.0.10.0080.04416.84
7.0.00.0050.04316.76
5.6.400.0110.00314.56
5.6.390.0110.00414.55
5.6.380.0060.01014.63
5.6.370.0030.00614.03
5.6.360.0070.01014.74
5.6.350.0030.00614.22
5.6.340.0000.01614.63
5.6.330.0030.01014.72
5.6.320.0090.00614.41
5.6.310.0100.00314.32
5.6.300.0030.01014.63
5.6.290.0110.00314.62
5.6.280.0030.04217.68
5.6.270.0130.00314.41
5.6.260.0030.01014.17
5.6.250.0070.03817.60
5.6.240.0040.04717.44
5.6.230.0100.04117.66
5.6.220.0120.03917.57
5.6.210.0080.04317.63
5.6.200.0090.02817.80
5.6.190.0100.04717.81
5.6.180.0090.03817.70
5.6.170.0030.05017.77
5.6.160.0020.03017.72
5.6.150.0070.04717.62
5.6.140.0070.04817.64
5.6.130.0050.03917.58
5.6.120.0090.04117.79
5.6.110.0070.03017.64
5.6.100.0050.04117.61
5.6.90.0060.04617.80
5.6.80.0070.02017.39
5.6.70.0130.01817.46
5.6.60.0060.02917.32
5.6.50.0020.02617.28
5.6.40.0020.03917.34
5.6.30.0080.02617.26
5.6.20.0020.03117.27
5.6.10.0030.04517.31
5.6.00.0090.04117.19
5.5.380.0070.04617.54
5.5.370.0080.02717.50
5.5.360.0070.04417.32
5.5.350.0090.04317.42
5.5.340.0080.02617.43
5.5.330.0090.03617.59
5.5.320.0100.04017.60
5.5.310.0050.03717.41
5.5.300.0030.02717.53
5.5.290.0110.02517.54
5.5.280.0110.02317.61
5.5.270.0080.04617.49
5.5.260.0020.04617.70
5.5.250.0050.04717.49
5.5.240.0060.03917.24
5.5.230.0120.03717.21
5.5.220.0060.03917.18
5.5.210.0030.04517.31
5.5.200.0080.04017.21
5.5.190.0050.04717.31
5.5.180.0050.04017.13
5.5.170.0040.00814.36
5.5.160.0080.04217.24
5.5.150.0030.04317.16
5.5.140.0040.04617.23
5.5.130.0070.03517.35
5.5.120.0080.03917.16
5.5.110.0050.04517.15
5.5.100.0110.03917.15
5.5.90.0070.02917.11
5.5.80.0080.04517.26
5.5.70.0100.02517.24
5.5.60.0070.02517.10
5.5.50.0030.03117.23
5.5.40.0140.02717.21
5.5.30.0120.04017.11
5.5.20.0100.03817.11
5.5.10.0070.04517.15
5.5.00.0060.04317.28
5.4.450.0040.04515.56
5.4.440.0080.04015.48
5.4.430.0040.03915.59
5.4.420.0050.02815.55
5.4.410.0070.03815.36
5.4.400.0040.04115.40
5.4.390.0050.04315.41
5.4.380.0030.03315.39
5.4.370.0030.02715.43
5.4.360.0040.02815.38
5.4.350.0030.03515.34
5.4.340.0050.04015.44
5.4.330.0030.00611.74
5.4.320.0040.04015.35
5.4.310.0100.03915.39
5.4.300.0030.03815.34
5.4.290.0110.02515.38
5.4.280.0050.04515.32
5.4.270.0120.02115.42
5.4.260.0070.04215.39
5.4.250.0050.02415.40
5.4.240.0070.03615.39
5.4.230.0150.03315.43
5.4.220.0050.04415.32
5.4.210.0060.03815.44
5.4.200.0080.03515.39
5.4.190.0070.02715.42
5.4.180.0080.03415.35
5.4.170.0050.04215.29
5.4.160.0050.02715.43
5.4.150.0030.04615.39
5.4.140.0000.03414.00
5.4.130.0030.04113.97
5.4.120.0020.03714.03
5.4.110.0030.04314.08
5.4.100.0030.04114.02
5.4.90.0020.04114.03
5.4.80.0050.04013.97
5.4.70.0030.04113.97
5.4.60.0070.03914.01
5.4.50.0050.03614.05
5.4.40.0050.04214.07
5.4.30.0050.02313.96
5.4.20.0070.04013.96
5.4.10.0070.03714.02
5.4.00.0050.04013.71
5.3.290.0050.04313.17
5.3.280.0080.02813.16
5.3.270.0070.03813.08
5.3.260.0050.04313.15
5.3.250.0150.02613.13
5.3.240.0070.02513.10
5.3.230.0050.02513.10
5.3.220.0050.03713.12
5.3.210.0080.03713.14
5.3.200.0000.04313.15
5.3.190.0120.03713.13
5.3.180.0120.03413.08
5.3.170.0050.02213.13
5.3.160.0020.03013.15
5.3.150.0030.04313.15
5.3.140.0060.03313.08
5.3.130.0110.03513.13
5.3.120.0110.03613.08
5.3.110.0100.03013.15
5.3.100.0030.04112.89
5.3.90.0070.03712.80
5.3.80.0070.04212.80
5.3.70.0060.02312.87
5.3.60.0030.04112.88
5.3.50.0060.02412.82
5.3.40.0030.02712.73
5.3.30.0100.03512.82
5.3.20.0050.02512.72
5.3.10.0020.02712.69
5.3.00.0080.03312.66
5.2.170.0070.05711.62
5.2.160.0030.06311.62
5.2.150.0030.06311.62
5.2.140.0070.06011.62
5.2.130.0070.05711.62
5.2.120.0070.06011.62
5.2.110.0000.03311.66
5.2.100.0130.06711.66
5.2.90.0070.05011.66
5.2.80.0030.05011.66
5.2.70.0100.02711.66
5.2.60.0030.05311.66
5.2.50.0030.04311.66
5.2.40.0100.05011.66
5.2.30.0130.02711.66
5.2.20.0100.05711.66
5.2.10.0030.04711.66
5.2.00.0070.05711.66
5.1.60.0170.04011.66
5.1.50.0100.03011.66
5.1.40.0070.04011.66
5.1.30.0030.04311.66
5.1.20.0030.04311.66
5.1.10.0030.05311.66
5.1.00.0000.05711.66
5.0.50.0000.02711.66
5.0.40.0000.02311.66
5.0.30.0030.06011.66
5.0.20.0030.03711.66
5.0.10.0070.04011.66
5.0.00.0130.02711.66
4.4.90.0000.01711.66
4.4.80.0000.02711.66
4.4.70.0030.03711.66
4.4.60.0000.03711.66
4.4.50.0030.01711.66
4.4.40.0030.04311.66
4.4.30.0030.02711.66
4.4.20.0070.03011.66
4.4.10.0070.02311.66
4.4.00.0030.05011.66
4.3.110.0030.02011.66
4.3.100.0000.03311.66
4.3.90.0000.02011.66
4.3.80.0070.05311.66
4.3.70.0030.03311.66
4.3.60.0030.02311.66
4.3.50.0030.02011.66
4.3.40.0100.04311.66
4.3.30.0030.02011.66
4.3.20.0100.03311.66
4.3.10.0000.03311.66
4.3.00.0030.01311.66

preferences:
35.24 ms | 401 KiB | 5 Q