3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stars = array('Tom' => 0.9, 'Dan' => 0.8, 'Max' => 0.1); arsort($stars); foreach ($stars as $name => $stars) { ?> <div style="font-size: 26pt;"><span style="width: 150px;"><?php echo htmlentities($name); ?></span> <?php echo str_repeat('<img style="height:30px;" src="http://ratherthecouch.files.wordpress.com/2013/02/gold-star.jpg?w=750" />', floor($stars / 5)); echo str_repeat('<img style="height:30px;" src="https://pbs.twimg.com/profile_images/446819911349043200/Q4Xvo_p5.jpeg" />', floor($stars % 5)); echo str_repeat('<img style="height:30px;" src="http://www.stalkingtools.com/img/logo.png" />', ( fmod($stars, 1) * 10)); ?> </div> <?php }

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.0070.00718.33
8.3.50.0130.00822.13
8.3.40.0070.00718.98
8.3.30.0070.00719.21
8.3.20.0060.00920.46
8.3.10.0000.00823.64
8.3.00.0030.00619.32
8.2.180.0090.00616.38
8.2.170.0110.00422.96
8.2.160.0070.00720.50
8.2.150.0090.00624.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0060.00320.90
8.2.110.0030.00622.38
8.2.100.0030.00917.84
8.2.90.0000.00819.34
8.2.80.0030.00617.97
8.2.70.0000.00817.75
8.2.60.0000.00718.05
8.2.50.0000.00918.07
8.2.40.0030.00621.09
8.2.30.0000.00818.45
8.2.20.0030.00517.78
8.2.10.0000.00718.38
8.2.00.0040.00417.77
8.1.280.0090.00925.92
8.1.270.0000.00823.79
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00524.09
8.1.230.0070.00419.22
8.1.220.0040.00417.78
8.1.210.0000.00818.77
8.1.200.0040.00417.36
8.1.190.0050.00317.35
8.1.180.0050.00318.10
8.1.170.0030.00718.69
8.1.160.0050.00222.18
8.1.150.0040.00418.70
8.1.140.0030.00517.67
8.1.130.0030.00317.90
8.1.120.0040.00417.54
8.1.110.0030.00617.64
8.1.100.0040.00417.61
8.1.90.0000.00717.60
8.1.80.0000.00817.58
8.1.70.0030.00317.47
8.1.60.0030.00617.77
8.1.50.0080.00017.72
8.1.40.0030.00617.60
8.1.30.0040.00417.85
8.1.20.0080.00017.84
8.1.10.0040.00417.65
8.1.00.0080.00017.59
8.0.300.0070.00018.77
8.0.290.0040.00417.16
8.0.280.0000.00718.60
8.0.270.0090.00017.41
8.0.260.0030.00317.42
8.0.250.0070.00017.11
8.0.240.0000.00717.09
8.0.230.0030.00317.03
8.0.220.0000.00717.03
8.0.210.0030.00317.04
8.0.200.0000.00616.98
8.0.190.0070.00017.15
8.0.180.0040.00416.98
8.0.170.0000.00816.96
8.0.160.0050.00217.07
8.0.150.0000.00717.00
8.0.140.0030.00616.89
8.0.130.0090.00013.47
8.0.120.0080.00017.02
8.0.110.0050.00316.95
8.0.100.0040.00416.93
8.0.90.0040.00416.93
8.0.80.0040.01117.10
8.0.70.0050.00317.11
8.0.60.0040.00416.95
8.0.50.0030.00616.93
8.0.30.0110.00817.35
8.0.20.0070.01217.40
8.0.10.0040.00417.12
8.0.00.0110.00717.06
7.4.330.0050.00015.09
7.4.320.0000.00716.75
7.4.300.0030.00316.77
7.4.290.0000.00716.78
7.4.280.0030.00616.70
7.4.270.0040.00416.80
7.4.260.0070.00016.64
7.4.250.0040.00416.73
7.4.240.0020.00516.65
7.4.230.0000.00716.50
7.4.220.0130.00516.59
7.4.210.0110.00416.70
7.4.200.0050.00316.61
7.4.190.0000.00716.53
7.4.160.0090.00616.61
7.4.150.0180.00017.40
7.4.140.0080.00917.86
7.4.130.0070.01116.72
7.4.120.0080.01016.63
7.4.110.0040.01416.60
7.4.100.0130.00316.59
7.4.90.0100.00716.64
7.4.80.0130.01019.39
7.4.70.0090.01216.71
7.4.60.0140.00316.70
7.4.50.0000.00916.38
7.4.40.0070.01016.66
7.4.30.0090.00916.69
7.4.00.0030.01014.88
7.3.330.0050.00013.32
7.3.320.0030.00313.39
7.3.310.0040.00416.39
7.3.300.0030.00316.50
7.3.290.0060.00916.45
7.3.280.0100.01016.46
7.3.270.0040.01417.40
7.3.260.0130.01016.58
7.3.250.0130.00716.70
7.3.240.0120.01316.70
7.3.230.0100.00616.73
7.3.210.0130.00316.55
7.3.200.0140.01019.39
7.3.190.0070.01116.76
7.3.180.0040.01116.67
7.3.170.0110.00516.51
7.3.160.0040.01116.48
7.3.120.0090.00614.93
7.2.330.0070.01016.79
7.2.320.0100.00716.91
7.2.310.0060.01216.68
7.2.300.0060.01116.84
7.2.290.0030.01416.65
7.2.00.0060.00918.82
7.1.200.0100.00315.86
7.1.100.0070.00518.14
7.1.70.0000.00716.93
7.1.60.0130.01019.46
7.1.50.0000.02216.91
7.1.00.0030.07022.43
7.0.200.0030.00316.93
7.0.140.0030.07322.19
7.0.60.0170.07720.19
7.0.50.0070.07718.09
7.0.40.0070.04320.30
7.0.30.0230.04320.36
7.0.20.0300.06320.07
7.0.10.0070.05020.25
7.0.00.0070.03720.35
5.6.280.0070.07020.95
5.6.210.0100.06320.63
5.6.200.0070.05318.25
5.6.190.0100.07020.47
5.6.180.0200.04320.34
5.6.170.0070.05320.74
5.6.160.0100.06320.53
5.6.150.0030.08018.30
5.6.140.0130.06718.30
5.6.130.0000.05018.21
5.6.120.0070.04021.30
5.6.110.0070.07321.14
5.6.100.0100.07721.26
5.6.90.0130.07021.28
5.6.80.0070.08320.54
5.5.350.2900.03320.52
5.5.340.0070.06718.15
5.5.330.0170.07020.13
5.5.320.0330.06320.33
5.5.310.0230.07020.54
5.5.300.0000.08717.96
5.5.290.0070.04718.13
5.5.280.0070.08720.98
5.5.270.0200.07020.92
5.5.260.0030.05720.97
5.5.250.0100.06020.78
5.5.240.0130.04720.29
5.4.450.0730.06719.48
5.4.440.0630.05319.38
5.4.430.0800.08719.57
5.4.420.0970.05019.47
5.4.410.0070.05719.00
5.4.400.0700.05019.10
5.4.390.0830.05318.79
5.4.380.0400.05018.57
5.4.370.0330.06018.49
5.4.360.0430.06318.63
5.4.350.0300.06018.63
5.4.340.0370.05718.70
5.4.320.0080.04012.45
5.4.310.0070.04912.45
5.4.300.0110.03412.46
5.4.290.0040.04812.45
5.4.280.0070.04012.35
5.4.270.0110.03612.35
5.4.260.0070.04012.35
5.4.250.0050.04312.35
5.4.240.0120.07012.35
5.4.230.0170.10112.34
5.4.220.0140.07512.34
5.4.210.0140.06012.34
5.4.200.0110.05512.34
5.4.190.0100.05712.34
5.4.180.0120.05512.34
5.4.170.0090.05712.35
5.4.160.0090.05112.34
5.4.150.0080.05512.34
5.4.140.0070.05812.02
5.4.130.0080.05112.02
5.4.120.0120.05011.97
5.4.110.0140.04911.97
5.4.100.0090.05111.96
5.4.90.0060.06311.96
5.4.80.0100.05911.97
5.4.70.0080.05511.96
5.4.60.0050.04811.96
5.4.50.0100.04111.96
5.4.40.0150.04311.95
5.4.30.0090.04011.95
5.4.20.0070.04111.95
5.4.10.0110.04211.95
5.4.00.0100.03511.44
5.3.290.0100.05212.80
5.3.280.0090.03812.71
5.3.270.0090.03912.72
5.3.260.0050.04912.72
5.3.250.0080.04312.72
5.3.240.0060.04212.72
5.3.230.0070.04112.70
5.3.220.0050.04212.68
5.3.210.0050.04312.68
5.3.200.0090.05112.68
5.3.190.0080.03712.68
5.3.180.0050.04212.68
5.3.170.0090.04312.67
5.3.160.0090.05112.67
5.3.150.0130.05012.68
5.3.140.0090.05012.66
5.3.130.0100.05312.66
5.3.120.0080.04212.66
5.3.110.0070.05112.66
5.3.100.0060.05512.12
5.3.90.0070.05012.08
5.3.80.0040.05412.07
5.3.70.0090.05012.08
5.3.60.0160.04812.06
5.3.50.0050.04812.00
5.3.40.0100.04812.00
5.3.30.0150.04411.96
5.3.20.0080.04911.74
5.3.10.0080.05011.71
5.3.00.0080.05111.69
5.2.170.0090.0419.20
5.2.160.0090.0399.20
5.2.150.0080.0439.20
5.2.140.0160.0349.20
5.2.130.0140.0359.16
5.2.120.0100.0389.15
5.2.110.0060.0459.16
5.2.100.0080.0459.15
5.2.90.0090.0409.15
5.2.80.0120.0399.15
5.2.70.0040.0489.15
5.2.60.0050.0529.11
5.2.50.0050.0519.07
5.2.40.0040.0489.05
5.2.30.0090.0459.02
5.2.20.0070.0419.01
5.2.10.0070.0518.94
5.2.00.0070.0448.79
5.1.60.0050.0578.08
5.1.50.0050.0378.08
5.1.40.0030.0398.05
5.1.30.0090.0368.41
5.1.20.0070.0398.43
5.1.10.0050.0368.16
5.1.00.0050.0398.15
5.0.50.0090.0286.63
5.0.40.0040.0296.50
5.0.30.0060.0476.30
5.0.20.0040.0286.30
5.0.10.0040.0306.28
5.0.00.0030.0436.27
4.4.90.0040.0204.78
4.4.80.0020.0254.76
4.4.70.0060.0204.76
4.4.60.0040.0154.75
4.4.50.0020.0174.77
4.4.40.0000.0284.71
4.4.30.0030.0154.76
4.4.20.0040.0154.85
4.4.10.0050.0144.85
4.4.00.0040.0254.76
4.3.110.0030.0164.67
4.3.100.0040.0154.66
4.3.90.0040.0154.64
4.3.80.0070.0244.58
4.3.70.0020.0164.63
4.3.60.0030.0144.63
4.3.50.0030.0164.63
4.3.40.0050.0224.54
4.3.30.0050.0133.32
4.3.20.0030.0153.30
4.3.10.0010.0173.27
4.3.00.0130.0277.39

preferences:
37.81 ms | 401 KiB | 5 Q