3v4l.org

run code in 300+ PHP versions simultaneously
<?php $in = "0 0 0 0 0.5230792 0 0 0 0.4769208 0 0 0 "; $data = preg_split("/[\s\n]/",$in); $count = count($in); $length = 1000; $size = $length/$count; $height = 100; print "<svg width='$length' height='$height'>"; $x = 0; foreach ($data as $line) { $inte = floor($line*255); print "<rect x='$x' y='0' width='$size' height='$height' style='fill:rgb($inte,$inte,$inte);stroke-width:1;stroke:white' />"; $x = $x+$size; } print "</svg>"; ?>

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.0040.01116.88
8.3.50.0130.00821.28
8.3.40.0040.01419.13
8.3.30.0120.00318.93
8.3.20.0040.00420.35
8.3.10.0050.00223.61
8.3.00.0030.00523.70
8.2.180.0100.01017.13
8.2.170.0120.00322.96
8.2.160.0040.00922.26
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0050.00317.75
8.2.110.0050.00519.33
8.2.100.0120.00017.63
8.2.90.0040.00419.21
8.2.80.0040.00417.97
8.2.70.0030.00517.63
8.2.60.0000.00817.80
8.2.50.0080.00018.07
8.2.40.0060.00619.05
8.2.30.0000.00819.80
8.2.20.0000.00817.77
8.2.10.0050.00318.14
8.2.00.0070.00018.02
8.1.280.0110.00325.92
8.1.270.0030.00620.38
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0000.00924.03
8.1.230.0000.01117.75
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00817.60
8.1.190.0030.00617.35
8.1.180.0000.00818.10
8.1.170.0000.00818.64
8.1.160.0000.00721.93
8.1.150.0040.00418.79
8.1.140.0040.00417.46
8.1.130.0030.00317.64
8.1.120.0030.00517.59
8.1.110.0070.00017.49
8.1.100.0070.00017.66
8.1.90.0000.00717.57
8.1.80.0060.00317.57
8.1.70.0000.00717.59
8.1.60.0040.00417.79
8.1.50.0000.00817.59
8.1.40.0080.00017.66
8.1.30.0000.00817.70
8.1.20.0070.00017.82
8.1.10.0040.00417.56
8.1.00.0050.00317.66
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0000.00818.30
8.0.270.0030.00317.17
8.0.260.0060.00017.16
8.0.250.0030.00517.12
8.0.240.0000.00717.03
8.0.230.0030.00316.93
8.0.220.0070.00016.91
8.0.210.0080.00016.91
8.0.200.0000.00617.05
8.0.190.0080.00017.07
8.0.180.0070.00017.01
8.0.170.0030.00617.13
8.0.160.0080.00017.16
8.0.150.0030.00317.02
8.0.140.0030.00517.04
8.0.130.0050.00013.50
8.0.120.0060.00316.97
8.0.110.0050.00317.08
8.0.100.0040.00417.08
8.0.90.0040.00416.98
8.0.80.0090.01217.05
8.0.70.0040.00417.18
8.0.60.0040.00416.93
8.0.50.0000.00717.20
8.0.30.0120.00417.18
8.0.20.0090.00817.40
8.0.10.0040.00417.24
8.0.00.0100.00916.89
7.4.330.0000.00615.23
7.4.320.0000.00616.70
7.4.300.0000.00616.78
7.4.290.0000.00716.75
7.4.280.0000.00816.75
7.4.270.0070.00016.91
7.4.260.0030.00316.85
7.4.250.0030.00516.80
7.4.240.0020.00616.81
7.4.230.0030.00316.77
7.4.220.0090.01316.80
7.4.210.0060.00916.76
7.4.200.0040.00416.70
7.4.160.0030.01316.65
7.4.150.0130.00417.40
7.4.140.0130.00817.86
7.4.130.0090.01116.71
7.4.120.0080.01416.83
7.4.110.0130.01016.83
7.4.100.0100.01316.73
7.4.90.0060.01216.51
7.4.80.0110.00819.39
7.4.70.0030.01416.94
7.4.60.0060.00916.67
7.4.50.0040.00516.67
7.4.40.0090.01216.71
7.4.30.0110.00716.84
7.4.00.0070.01015.36
7.3.330.0000.00513.39
7.3.320.0030.00313.48
7.3.310.0030.00316.54
7.3.300.0000.00716.61
7.3.290.0100.00416.58
7.3.280.0040.01416.59
7.3.270.0130.00417.40
7.3.260.0070.01016.82
7.3.250.0070.01316.70
7.3.240.0060.01216.58
7.3.230.0040.01416.61
7.3.210.0120.00616.68
7.3.200.0060.01116.66
7.3.190.0090.00616.64
7.3.180.0090.00616.65
7.3.170.0060.00916.57
7.3.160.0130.01016.76
7.2.330.0070.01016.91
7.2.320.0120.00416.90
7.2.310.0090.01516.93
7.2.300.0110.00616.96
7.2.290.0130.01016.97
7.2.60.0070.00717.13
7.2.00.0060.01019.80
7.1.200.0070.00715.75
7.1.100.0030.01018.29
7.1.70.0000.00917.55
7.1.60.0130.01319.12
7.1.50.0060.01617.11
7.1.00.0030.07722.29
7.0.200.0040.00417.02
7.0.60.0070.05320.00
7.0.50.0070.08017.90
7.0.40.0100.04320.26
7.0.30.0330.04320.32
7.0.20.0330.05020.22
7.0.10.0100.05020.18
7.0.00.0030.04320.02
5.6.280.0000.03321.10
5.6.210.0030.07720.50
5.6.200.0070.03718.11
5.6.190.0030.06020.63
5.6.180.3370.04720.54
5.6.170.0270.05020.34
5.6.160.0000.04720.51
5.6.150.0030.08018.12
5.6.140.0030.04718.07
5.6.130.0070.05318.14
5.6.120.0100.08721.00
5.6.110.0100.08320.89
5.6.100.0000.06320.88
5.6.90.0130.06020.99
5.6.80.0170.07020.40
5.6.70.2900.03720.38
5.5.350.0300.06320.40
5.5.340.0130.07318.02
5.5.330.0000.04720.28
5.5.320.0370.06320.27
5.5.310.0130.04320.23
5.5.300.0070.08018.00
5.5.290.0100.08017.95
5.5.280.0070.08320.81
5.5.270.0030.08020.95
5.5.260.0100.08320.73
5.5.250.0000.08320.47
5.5.240.0270.07020.24
5.4.450.0700.06019.24
5.4.440.0200.05319.59
5.4.430.0130.05719.60
5.4.420.0130.05719.41
5.4.410.0170.05719.34
5.4.400.0130.06019.28
5.4.390.0130.06318.99
5.4.380.0200.05319.12
5.4.370.0230.06319.15
5.4.360.0270.07019.16
5.4.350.0100.08019.15
5.4.340.0130.05719.15
5.4.320.0130.06319.16
5.4.310.0570.06018.81
5.4.300.0530.05718.80
5.4.290.0600.04318.74
5.4.280.0530.04319.28
5.4.270.0130.05319.18
5.4.260.0100.06019.31
5.4.250.0470.07319.14
5.4.240.0130.05319.18
5.4.230.0300.04318.98
5.4.220.0230.04719.21
5.4.210.0570.05018.96
5.4.200.0600.05316.68
5.4.190.0700.04719.19
5.4.180.0330.06319.28
5.4.170.0100.06719.09
5.4.160.0200.05319.07
5.4.150.0330.05318.99
5.4.140.0530.04716.49
5.4.130.0070.05316.38
5.4.120.0270.06016.36
5.4.110.0130.04716.38
5.4.100.0400.05316.21
5.4.90.0570.06016.59
5.4.80.0800.04016.47
5.4.70.0570.07316.25
5.4.60.0700.04316.47
5.4.50.0600.05016.23
5.4.40.1070.06716.31
5.4.30.0630.06316.21
5.4.20.0470.04716.35
5.4.10.0130.05016.14
5.4.00.0370.04715.64
5.3.290.0870.07714.61
5.3.280.0100.07314.39
5.3.270.0200.06314.44
5.3.260.0270.06714.56
5.3.250.0270.06714.59
5.3.240.0100.05714.57
5.3.230.0070.05714.50
5.3.220.0200.06714.59
5.3.210.0200.07314.41
5.3.200.0130.05314.41
5.3.190.0100.05314.66
5.3.180.0230.04014.50
5.3.170.0130.05014.40
5.3.160.0300.04014.58
5.3.150.0130.05014.45
5.3.140.0130.06314.51
5.3.130.0130.05314.41
5.3.120.0170.06714.39
5.3.110.0570.06014.50
5.3.100.0630.06314.05
5.3.90.0430.04713.96
5.3.80.0230.05014.00
5.3.70.0470.05713.86
5.3.60.0570.05713.85
5.3.50.0600.04313.80
5.3.40.0130.05013.79
5.3.30.0130.06013.93
5.3.20.0230.05313.63
5.3.10.0170.04713.54
5.3.00.0170.04713.48
5.2.170.0600.04310.99
5.2.160.0600.03711.09
5.2.150.0500.04710.98
5.2.140.0470.04311.00
5.2.130.0630.03710.96
5.2.120.0570.04711.15
5.2.110.0770.04711.12
5.2.100.0670.05010.96
5.2.90.0630.05310.95
5.2.80.0670.05311.08
5.2.70.0570.05011.25
5.2.60.0500.04310.89
5.2.50.0470.04011.17
5.2.40.0370.04010.88
5.2.30.0370.04310.84
5.2.20.0270.05010.86
5.2.10.0370.04310.88
5.2.00.0400.04010.77
5.1.60.0430.04010.23
5.1.50.0370.0379.98
5.1.40.0370.0309.88
5.1.30.0330.03710.40
5.1.20.0400.03010.27
5.1.10.0330.03310.23
5.1.00.0200.04010.00
5.0.50.0170.0308.40
5.0.40.0230.0238.42
5.0.30.0230.0378.17
5.0.20.0170.0278.43
5.0.10.0330.0278.26
5.0.00.0300.0438.17
4.4.90.0270.0236.96
4.4.80.0230.0236.96
4.4.70.0170.0276.96
4.4.60.0200.0236.96
4.4.50.0170.0276.96
4.4.40.0200.0406.96
4.4.30.0400.0176.96
4.4.20.0300.0276.96
4.4.10.0230.0236.96
4.4.00.0270.0276.96
4.3.110.0200.0236.96
4.3.100.0330.0236.96
4.3.90.0300.0206.96
4.3.80.0200.0376.96
4.3.70.0330.0106.96
4.3.60.0230.0276.96
4.3.50.0230.0306.96
4.3.40.0100.0376.96
4.3.30.0070.0236.96
4.3.20.0070.0206.96
4.3.10.0030.0236.96
4.3.00.0200.0177.07

preferences:
46.56 ms | 401 KiB | 5 Q