3v4l.org

run code in 300+ PHP versions simultaneously
<?php $starNumber = 3.5; $output =""; for($x=1;$x<=$starNumber;$x++) { $output .= '<i class="fa fa-star" aria-hidden="true"></i>' . "\n"; } if (strpos($starNumber,'.')) { $output .= '<i class="fa fa-star-half-o" aria-hidden="true"></i>' . "\n"; $x++; } while ($x<=5) { $output .= '<i class="fa fa-star-o" aria-hidden="true"></i>' . "\n"; $x++; } Echo $output;

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.5.00.0160.00519.88
8.4.150.0010.00114.05
8.4.140.0120.00917.36
8.4.130.0110.00817.64
8.4.120.0100.01020.46
8.4.110.0120.00722.46
8.4.100.0070.00417.84
8.4.90.0110.00820.60
8.4.80.0030.00519.00
8.4.70.0140.00918.74
8.4.60.0090.00420.31
8.4.50.0140.00520.51
8.4.40.0130.00719.32
8.4.30.0120.00817.65
8.4.20.0000.00820.39
8.4.10.0120.00819.24
8.3.280.0110.01118.42
8.3.270.0120.00716.50
8.3.260.0100.01116.58
8.3.250.0120.00819.02
8.3.240.0130.00716.57
8.3.230.0160.00316.68
8.3.220.0130.00318.98
8.3.210.0060.00818.21
8.3.200.0110.00616.59
8.3.190.0110.00517.22
8.3.180.0080.00916.80
8.3.170.0070.01117.04
8.3.160.0040.00420.57
8.3.150.0160.00317.04
8.3.140.0090.00617.05
8.3.130.0090.00918.20
8.3.120.0140.00718.81
8.3.110.0040.00420.94
8.3.100.0040.00424.06
8.3.90.0080.00026.77
8.3.80.0060.00317.97
8.3.70.0100.01018.18
8.3.60.0060.00918.30
8.3.50.0070.00718.30
8.3.40.0110.00418.80
8.3.30.0060.00918.52
8.3.20.0080.00019.19
8.3.10.0000.00723.66
8.3.00.0050.00320.77
8.2.290.0080.00816.85
8.2.280.0100.00919.98
8.2.270.0040.01516.89
8.2.260.0110.00716.34
8.2.250.0110.00716.38
8.2.240.0080.00016.86
8.2.230.0100.00022.58
8.2.220.0060.00337.54
8.2.210.0000.00826.77
8.2.200.0030.00616.48
8.2.190.0110.00316.58
8.2.180.0120.00918.29
8.2.170.0110.00722.96
8.2.160.0090.00622.21
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0060.00319.77
8.2.120.0080.00026.35
8.2.110.0090.00919.30
8.2.100.0060.00617.91
8.2.90.0000.00819.27
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0080.00018.04
8.2.50.0050.00318.07
8.2.40.0040.00818.22
8.2.30.0050.00318.20
8.2.20.0030.00618.30
8.2.10.0000.00718.00
8.2.00.0030.00617.75
8.1.330.0120.00616.18
8.1.320.0130.00715.89
8.1.310.0040.00418.32
8.1.300.0040.00418.05
8.1.290.0100.00030.84
8.1.280.0030.01025.92
8.1.270.0040.00424.02
8.1.260.0030.00526.35
8.1.250.0030.00528.09
8.1.240.0050.00521.91
8.1.230.0040.00820.96
8.1.220.0060.00317.76
8.1.210.0030.00518.77
8.1.200.0040.00417.22
8.1.190.0040.00417.11
8.1.180.0050.00318.10
8.1.170.0050.00318.52
8.1.160.0000.00718.82
8.1.150.0040.00418.88
8.1.140.0030.00322.05
8.1.130.0040.00420.00
8.1.120.0040.00317.31
8.1.110.0050.00217.29
8.1.100.0000.00717.42
8.1.90.0070.00017.28
8.1.80.0080.00017.31
8.1.70.0000.00717.26
8.1.60.0050.00317.51
8.1.50.0060.00317.43
8.1.40.0040.00417.45
8.1.30.0030.00617.54
8.1.20.0100.00517.63
8.1.10.0000.00717.51
8.1.00.0040.00417.46
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.36
8.0.270.0000.00717.13
8.0.260.0000.00718.45
8.0.250.0030.00316.97
8.0.240.0000.00616.94
8.0.230.0000.00716.83
8.0.220.0030.00516.69
8.0.210.0000.00716.82
8.0.200.0030.00316.77
8.0.190.0060.00316.78
8.0.180.0000.00716.78
8.0.170.0000.01016.76
8.0.160.0080.00316.79
8.0.150.0000.00716.74
8.0.140.0040.00416.87
8.0.130.0000.00613.23
8.0.120.0040.00416.80
8.0.110.0050.00316.67
8.0.100.0000.00716.67
8.0.90.0000.00816.72
8.0.80.0050.01416.81
8.0.70.0040.00416.89
8.0.60.0000.00816.70
8.0.50.0000.00716.71
8.0.30.0130.00617.23
8.0.20.0140.00417.40
8.0.10.0000.00717.00
8.0.00.0080.01016.78
7.4.330.0050.00015.55
7.4.320.0060.00016.34
7.4.300.0040.00416.55
7.4.290.0040.00416.52
7.4.280.0000.00716.53
7.4.270.0030.00316.54
7.4.260.0070.00316.57
7.4.250.0070.00016.43
7.4.240.0000.00716.37
7.4.230.0030.00316.39
7.4.220.0030.00516.34
7.4.210.0050.00916.40
7.4.200.0030.00516.34
7.4.160.0050.01116.44
7.4.140.0100.00917.86
7.4.130.0030.01416.55
7.4.120.0110.00916.37
7.4.110.0090.01216.57
7.4.100.0160.00716.32
7.4.90.0100.00716.57
7.4.80.0060.01219.39
7.4.70.0000.02016.46
7.4.60.0060.00916.52
7.4.50.0110.00416.34
7.4.40.0100.01016.40
7.4.20.0090.00616.35
7.4.10.0100.00615.60
7.4.00.0070.00715.45
7.3.330.0000.00513.06
7.3.320.0030.00313.11
7.3.310.0040.00416.30
7.3.300.0000.00616.11
7.3.290.0020.00516.20
7.3.280.0150.00316.25
7.3.260.0110.00616.57
7.3.240.0080.01016.32
7.3.230.0030.01816.36
7.3.210.0060.01016.49
7.3.200.0190.00516.58
7.3.190.0000.02016.29
7.3.180.0100.00616.17
7.3.170.0160.00616.46
7.3.160.0130.00716.37
7.3.140.0100.00516.55
7.3.130.0030.01215.52
7.3.120.0030.01115.30
7.3.110.0100.00715.51
7.3.100.0090.00515.46
7.3.90.0050.01015.62
7.3.80.0050.00815.48
7.3.70.0080.00515.53
7.3.60.0060.00815.61
7.3.50.0100.00815.39
7.3.40.0070.00915.50
7.3.30.0100.00715.61
7.3.20.0100.00716.43
7.3.10.0070.01216.31
7.3.00.0040.01016.25
7.2.330.0110.00716.66
7.2.320.0070.01016.62
7.2.310.0130.00316.41
7.2.300.0050.01216.63
7.2.290.0060.01716.71
7.2.270.0000.01616.21
7.2.260.0050.01315.72
7.2.250.0050.01215.66
7.2.240.0110.00315.83
7.2.230.0070.01015.78
7.2.220.0070.00815.64
7.2.210.0050.01015.78
7.2.200.0080.00815.72
7.2.190.0070.00915.75
7.2.180.0080.00715.83
7.2.170.0060.00915.76
7.2.160.0070.01015.85
7.2.150.0060.01116.69
7.2.140.0140.00316.83
7.2.130.0080.00616.66
7.2.120.0020.01416.65
7.2.110.0700.00616.01
7.2.100.0440.00715.88
7.2.90.0460.01015.91
7.2.80.0210.00815.89
7.2.70.0380.00516.02
7.2.60.0480.00916.00
7.2.50.0560.01216.02
7.2.40.0360.01216.04
7.2.30.0340.00816.02
7.2.20.0100.01215.91
7.2.10.0410.00616.03
7.2.00.0440.01315.84
7.1.330.0060.00915.54
7.1.320.0100.00715.40
7.1.310.0090.00615.59
7.1.300.0090.01215.50
7.1.290.0150.00315.64
7.1.280.0070.00915.37
7.1.270.0110.00615.52
7.1.260.0110.00415.51
7.1.250.0110.00315.46
7.1.240.0050.00915.67
7.1.230.0410.00715.09
7.1.220.0310.00714.97
7.1.210.0450.00914.68
7.1.200.0410.01114.87
7.1.190.0400.00714.77
7.1.180.0330.01014.81
7.1.170.0420.00614.85
7.1.160.0160.01014.81
7.1.150.0230.01014.86
7.1.140.0360.01014.87
7.1.130.0410.00814.90
7.1.120.0420.00615.06
7.1.110.0560.00614.79
7.1.100.0110.00814.93
7.1.90.0170.00914.83
7.1.80.0080.01014.89
7.1.70.0190.00814.90
7.1.60.0220.00820.86
7.1.50.0230.00920.92
7.1.40.0380.00820.84
7.1.30.0730.01120.88
7.1.20.0820.00820.89
7.1.10.0290.00814.86
7.1.00.0450.00914.75
7.0.330.0080.01014.97
7.0.320.0120.00615.18
7.0.310.0000.01415.05
7.0.300.0070.00615.05
7.0.290.0040.00915.06
7.0.280.0050.00915.24
7.0.270.0070.01015.13
7.0.260.0110.00815.34
7.0.250.0020.01515.20
7.0.240.0080.00815.39
7.0.230.0050.01115.22
7.0.220.0060.00615.26
7.0.210.0060.00915.04
7.0.200.0110.00515.21
7.0.190.0100.00815.13
7.0.180.0080.00615.25
7.0.170.0080.00815.18
7.0.160.0050.01115.21
7.0.150.0110.00415.19
7.0.140.0110.00215.35
7.0.130.0070.00915.14
7.0.120.0130.00315.22
7.0.110.0080.00415.08
7.0.100.0120.00315.24
7.0.90.0090.00415.37
7.0.80.0080.01015.13
7.0.70.0060.01015.11
7.0.60.0120.00315.26
7.0.50.0070.00815.27
7.0.40.0060.01214.10
7.0.30.0080.01114.17
7.0.20.0070.00614.22
7.0.10.0120.00814.30
7.0.00.0070.01014.32
5.6.400.0070.01215.17
5.6.390.0070.01315.19
5.6.380.0090.00714.59
5.6.370.0040.00914.86
5.6.360.0090.00715.13
5.6.350.0080.01115.07
5.6.340.0080.00815.27
5.6.330.0120.00915.00
5.6.320.0080.01115.08
5.6.310.0090.01115.07
5.6.300.0070.01315.02
5.6.290.0080.01015.24
5.6.280.0090.00815.04
5.6.270.0080.00814.91
5.6.260.0140.00715.14
5.6.250.0130.00615.25
5.6.240.0120.01114.96
5.6.230.0060.01015.04
5.6.220.0110.00714.97
5.6.210.0040.01315.11
5.6.200.0130.00615.04
5.6.190.0080.01015.21
5.6.180.0140.00715.01
5.6.170.0120.00715.14
5.6.160.0080.00615.12
5.6.150.0120.00415.04
5.6.140.0150.00515.14
5.6.130.0090.01014.95
5.6.120.0100.00715.15
5.6.110.0060.01114.87
5.6.100.0090.00615.06
5.6.90.0060.01014.84
5.6.80.0090.01014.97
5.6.70.0060.01514.88
5.6.60.0080.01114.79
5.6.50.0080.01114.87
5.6.40.0040.00914.91
5.6.30.0090.00615.04
5.6.20.0070.00815.11
5.6.10.0090.00615.10
5.6.00.0080.00615.13
5.5.380.0210.01416.07
5.5.370.0110.01115.85
5.5.360.0200.00815.77
5.5.350.0090.01415.60
5.5.340.0190.00515.79
5.5.330.0110.01115.63
5.5.320.0180.00515.93
5.5.310.0120.01215.90
5.5.300.0100.01316.00
5.5.290.0060.01315.94
5.5.280.0170.00615.93
5.5.270.0150.00915.72
5.5.260.0120.01215.88
5.5.250.0130.01015.71
5.5.240.0180.00615.93
5.5.230.0110.01415.89
5.5.220.0080.01615.80
5.5.210.0220.00515.93
5.5.200.0130.00915.80
5.5.190.0130.01115.82
5.5.180.0150.00716.00
5.5.170.0110.01515.68
5.5.160.0260.00315.84
5.5.150.0190.00715.73
5.5.140.0230.00715.84
5.5.130.0100.01015.80
5.5.120.0140.01115.71
5.5.110.0130.01315.85
5.5.100.0160.00316.04
5.5.90.0120.01216.04
5.5.80.0060.01215.91
5.5.70.0090.00915.82
5.5.60.0070.01115.75
5.5.50.0060.01215.77
5.5.40.0070.01015.72
5.5.30.0040.01515.65
5.5.20.0030.02215.72
5.5.10.0060.01015.81
5.5.00.0100.00715.50
5.4.450.0100.00712.76
5.4.440.0060.01112.56
5.4.430.0150.00312.61
5.4.420.0030.01612.74
5.4.410.0120.00812.81
5.4.400.0140.00512.68
5.4.390.0120.00612.55
5.4.380.0120.00812.58
5.4.370.0070.01012.53
5.4.360.0080.00812.76
5.4.350.0170.00312.43
5.4.340.0060.01312.55
5.4.330.0100.00712.75
5.4.320.0210.00012.46
5.4.310.0060.01112.59
5.4.300.0110.01212.54
5.4.290.0080.00812.46
5.4.280.0080.01612.72
5.4.270.0120.00312.63
5.4.260.0080.00512.48
5.4.250.0040.01112.49
5.4.240.0070.00612.54
5.4.230.0070.00712.51
5.4.220.0090.00312.57
5.4.210.0100.00312.47
5.4.200.0030.01012.50
5.4.190.0130.00312.37
5.4.180.0100.00312.62
5.4.170.0070.00712.63
5.4.160.0060.00612.62
5.4.150.0040.01112.59
5.4.140.0060.00612.58
5.4.130.0030.01012.86
5.4.120.0100.00312.94
5.4.110.0060.01112.54
5.4.100.0040.00712.43
5.4.90.0040.00812.61
5.4.80.0060.00612.89
5.4.70.0110.00812.61
5.4.60.0070.01112.59
5.4.50.0000.01312.59
5.4.40.0030.00912.66
5.4.30.0000.01212.55
5.4.20.0090.00612.49
5.4.10.0070.01012.61
5.4.00.0060.00612.63
5.3.290.0120.01213.12
5.3.280.0160.00313.01
5.3.270.0140.00312.94
5.3.260.0080.01213.10
5.3.250.0100.00713.02
5.3.240.0150.00312.90
5.3.230.0040.01312.89
5.3.220.0160.00412.75
5.3.210.0040.02012.85
5.3.200.0040.01412.72
5.3.190.0080.00812.89
5.3.180.0130.01312.94
5.3.170.0070.01512.90
5.3.160.0130.00813.09
5.3.150.0110.00913.01
5.3.140.0120.00912.79
5.3.130.0110.00613.04
5.3.120.0160.00813.09
5.3.110.0140.00313.09
5.3.100.0140.00712.98
5.3.90.0160.00512.92
5.3.80.0100.00712.77
5.3.70.0110.00612.75
5.3.60.0100.01012.95
5.3.50.0080.01212.87
5.3.40.0130.00812.75
5.3.30.0130.00312.94
5.3.20.0160.00013.08
5.3.10.0090.00912.73
5.3.00.0080.01512.54
5.2.170.0030.01712.11
5.2.160.0090.00612.11
5.2.150.0060.00912.10
5.2.140.0100.00711.85
5.2.130.0070.00711.89
5.2.120.0120.00711.98
5.2.110.0080.01212.04
5.2.100.0090.01211.91
5.2.90.0100.01011.91
5.2.80.0140.00611.82
5.2.70.0040.01611.84
5.2.60.0100.00711.78
5.2.50.0150.00512.05
5.2.40.0050.01012.10
5.2.30.0090.00511.81
5.2.20.0080.00511.68
5.2.10.0110.00611.62
5.2.00.0080.01211.61
5.1.60.0110.00611.37
5.1.50.0070.00811.37
5.1.40.0030.01411.37
5.1.30.0090.00411.37
5.1.20.0100.00311.37
5.1.10.0150.00311.37
5.1.00.0030.00911.37
5.0.50.0030.00811.37
5.0.40.0060.00611.37
5.0.30.0000.01111.37
5.0.20.0080.00611.37
5.0.10.0080.00611.37
5.0.00.0110.00311.37
4.4.90.0100.00011.37
4.4.80.0040.00411.37
4.4.70.0040.00411.37
4.4.60.0040.00211.37
4.4.50.0070.00011.37
4.4.40.0080.00011.37
4.4.30.0050.00211.37
4.4.20.0040.00411.37
4.4.10.0070.00011.37
4.4.00.0040.00211.37
4.3.110.0070.00011.37
4.3.100.0000.00711.37
4.3.90.0080.00011.37
4.3.80.0030.00311.37
4.3.70.0030.00311.37
4.3.60.0070.00011.37
4.3.50.0050.00311.37
4.3.40.0070.00011.37
4.3.30.0040.00211.37
4.3.20.0020.00411.37
4.3.10.0000.00611.37
4.3.00.0060.00011.37

preferences:
34.14 ms | 403 KiB | 5 Q