3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = 5; for ($i = 1; $i <= $number; $i++) { echo str_repeat('*', $i * ($i + 1) /2) . str_repeat('0', $i) . PHP_EOL; }

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.1rc30.0040.00416.80
8.1rc20.0040.00416.83
8.1rc10.0040.00416.90
8.0.130.0050.00013.37
8.0.120.0080.00016.88
8.0.110.0050.00216.79
8.0.100.0000.00716.92
8.0.90.0040.00416.70
8.0.80.0010.01316.87
8.0.70.0000.00716.88
8.0.60.0040.00416.89
8.0.50.0000.00716.76
8.0.30.0060.01216.84
8.0.20.0130.00716.92
8.0.10.0050.00317.00
8.0.00.0120.00416.50
7.4.260.0030.00313.16
7.4.250.0030.00316.48
7.4.240.0030.00316.56
7.4.230.0000.00916.43
7.4.220.0000.00716.24
7.4.210.0060.00816.52
7.4.200.0000.00716.34
7.4.130.0080.00916.48
7.4.120.0070.01016.46
7.4.110.0060.01316.40
7.4.100.0130.00316.36
7.4.90.0130.00616.43
7.4.80.0090.00919.39
7.4.70.0050.01316.43
7.4.60.0060.01016.48
7.4.50.0060.00816.32
7.4.40.0120.00716.33
7.4.30.0080.01216.43
7.4.20.0120.00616.46
7.4.10.0100.00616.42
7.4.00.0110.00516.37
7.3.330.0070.00016.32
7.3.320.0030.00313.15
7.3.310.0070.00016.32
7.3.300.0070.00016.26
7.3.290.0090.01016.32
7.3.260.0120.00616.22
7.3.240.0060.01016.50
7.3.230.0130.00616.14
7.3.210.0130.00316.43
7.3.200.0160.00316.20
7.3.190.0080.01016.31
7.3.180.0060.01016.35
7.3.170.0040.01216.46
7.3.160.0170.00116.38
7.3.150.0090.01116.57
7.3.140.0060.01016.30
7.3.130.0050.01116.38
7.3.120.0070.01016.49
7.3.110.0080.00816.24
7.3.100.0090.00716.29
7.3.90.0050.01216.49
7.3.80.0110.01016.12
7.3.70.0040.01316.24
7.3.60.0120.00516.39
7.3.50.0130.00316.25
7.3.40.0090.00716.30
7.3.30.0100.00616.31
7.3.20.0130.00316.49
7.3.10.0050.01316.36
7.3.00.0100.01416.35
7.2.330.0060.01316.84
7.2.320.0130.00616.72
7.2.310.0070.01016.68
7.2.300.0050.01416.68
7.2.290.0090.01116.46
7.2.280.0070.01016.73
7.2.270.0130.00516.69
7.2.260.0120.00516.73
7.2.250.0040.01516.52
7.2.240.0070.01016.65
7.2.230.0100.00816.64
7.2.220.0050.01216.66
7.2.210.0050.01316.73
7.2.200.0080.00916.54
7.2.190.0070.01016.47
7.2.180.0050.01116.55
7.2.170.0090.00916.57
7.2.160.0110.00616.55
7.2.150.0130.00516.67
7.2.140.0110.00716.58
7.2.130.0190.00616.60
7.2.120.0120.00816.56
7.2.110.0130.01316.59
7.2.100.0110.00816.62
7.2.90.0080.01016.69
7.2.80.0140.00616.61
7.2.70.0130.00816.59
7.2.60.0120.00916.55
7.2.50.0130.00616.74
7.2.40.0040.01616.60
7.2.30.0140.00316.63
7.2.20.0310.00716.56
7.2.10.0080.01116.50
7.2.00.0080.01516.58
7.1.330.0090.00915.66
7.1.320.0090.01215.48
7.1.310.0110.00615.88
7.1.300.0100.01315.64
7.1.290.0060.00915.50
7.1.280.0080.00815.56
7.1.270.0070.01015.76
7.1.260.0080.00815.54
7.1.250.0000.01715.60
7.1.240.0090.00615.62
7.1.230.0110.00415.55
7.1.220.0060.01215.63
7.1.210.0030.01315.43
7.1.200.0060.01015.41
7.1.190.0120.00615.45
7.1.180.0040.01515.50
7.1.170.0100.00515.42
7.1.160.0070.01115.63
7.1.150.0060.01215.66
7.1.140.0070.01015.33
7.1.130.0060.01015.59
7.1.120.0120.00415.34
7.1.110.0210.00415.59
7.1.100.0120.00415.41
7.1.90.0080.00815.39
7.1.80.0080.00815.49
7.1.70.0130.01015.63
7.1.60.0110.00515.51
7.1.50.0110.00515.43
7.1.40.0360.01615.56
7.1.30.0200.02515.24
7.1.20.0310.00715.45
7.1.10.0060.01715.43
7.1.00.0090.01215.21
7.0.330.0240.00815.17
7.0.320.0200.01115.25
7.0.310.0170.00915.36
7.0.300.0450.00715.15
7.0.290.0220.00415.04
7.0.280.0250.00315.26
7.0.270.0190.00915.21
7.0.260.0580.00415.43
7.0.250.0240.00315.18
7.0.240.0180.01015.23
7.0.230.0230.00315.35
7.0.220.0190.00815.14
7.0.210.0220.00915.32
7.0.200.0200.01015.28
7.0.190.0500.02115.30
7.0.180.0500.02515.23
7.0.170.0480.00315.36
7.0.160.0480.01215.30
7.0.150.0310.00815.21
7.0.140.0240.00815.20
7.0.130.0180.01115.16
7.0.120.0200.01015.15
7.0.110.0280.00415.28
7.0.100.0210.00915.38
7.0.90.0140.01015.34
7.0.80.0200.00815.30
7.0.70.0070.01815.02
7.0.60.0140.01515.25
7.0.50.0100.00915.34
7.0.40.0120.00615.32
7.0.30.0030.01315.12
7.0.20.0080.01215.15
7.0.10.0080.00815.05
7.0.00.0160.02215.19
5.6.400.0250.01115.72
5.6.390.0240.01016.04
5.6.380.0110.01715.79
5.6.370.0180.01415.96
5.6.360.0140.01415.97
5.6.350.0150.01616.04
5.6.340.0240.00615.88
5.6.330.0140.01415.88
5.6.320.0220.00615.73
5.6.310.0230.00915.92
5.6.300.0290.02115.95
5.6.290.0210.01315.58
5.6.280.0420.02615.98
5.6.270.0180.01516.00
5.6.260.0250.00515.91
5.6.250.0210.00315.80
5.6.240.0130.00715.84
5.6.230.0210.01015.88
5.6.220.0070.01615.95
5.6.210.0160.00615.91
5.6.200.0200.00815.70
5.6.190.0090.01815.96
5.6.180.0200.00716.11
5.6.170.0150.00715.57
5.6.160.0220.01115.91
5.6.150.0120.00915.73
5.6.140.0180.00915.75
5.6.130.0100.01715.98
5.6.120.0120.01215.76
5.6.110.0080.01515.93
5.6.100.0110.01415.67
5.6.90.0170.00715.94
5.6.80.0120.00815.68
5.6.70.0140.00715.89
5.6.60.0210.02415.96
5.6.50.0030.01715.75
5.6.40.0180.00315.59
5.6.30.0100.01415.70
5.6.20.0130.00615.60
5.6.10.0150.00315.88
5.6.00.0070.01315.66
5.5.380.0310.00215.90
5.5.370.0220.02315.82
5.5.360.0230.01016.04
5.5.350.0220.01115.94
5.5.340.0190.01115.61
5.5.330.0200.01315.84
5.5.320.0200.01215.66
5.5.310.0190.01915.92
5.5.300.0320.00415.88
5.5.290.0180.01215.60
5.5.280.0240.00915.71
5.5.270.0180.01215.72
5.5.260.0260.00415.66
5.5.250.0140.01715.73
5.5.240.0190.01715.58
5.5.230.0160.01615.74
5.5.220.0150.02015.71
5.5.210.0280.00515.89
5.5.200.0180.01415.72
5.5.190.0180.01115.77
5.5.180.0200.00915.45
5.5.170.0160.01315.79
5.5.160.0120.02015.82
5.5.150.0160.01315.66
5.5.140.0250.00815.63
5.5.130.0300.00715.53
5.5.120.0140.01715.86
5.5.110.0210.00915.67
5.5.100.0180.01115.74
5.5.90.0150.01215.61
5.5.80.0090.01915.73
5.5.70.0190.01515.83
5.5.60.0160.01315.64
5.5.50.0190.01215.55
5.5.40.0230.00815.74
5.5.30.0170.01415.84
5.5.20.0230.00715.88
5.5.10.0170.01215.61
5.5.00.0170.01215.77
5.4.450.0090.01412.52
5.4.440.0200.00612.70
5.4.430.0140.01012.47
5.4.420.0160.01012.38
5.4.410.0270.00012.49
5.4.400.0180.00412.66
5.4.390.0180.00612.55
5.4.380.0170.01112.53
5.4.370.0150.00812.40
5.4.360.0120.01212.41
5.4.350.0160.00612.50
5.4.340.0100.01612.60
5.4.330.0120.00912.45
5.4.320.0160.00512.55
5.4.310.0130.01512.48
5.4.300.0180.00912.41
5.4.290.0110.01412.43
5.4.280.0120.01212.41
5.4.270.0110.01112.34
5.4.260.0200.01012.53
5.4.250.0140.01212.40
5.4.240.0140.00712.59
5.4.230.0230.00412.36
5.4.220.0310.02012.41
5.4.210.0160.00812.61
5.4.200.0170.00712.70
5.4.190.0130.01112.50
5.4.180.0170.00612.42
5.4.170.0170.00612.43
5.4.160.0190.00612.36
5.4.150.0150.00712.62
5.4.140.0130.00912.67
5.4.130.0180.00612.57
5.4.120.0200.00612.47
5.4.110.0160.01012.61
5.4.100.0160.00712.71
5.4.90.0140.00712.61
5.4.80.0140.00912.42
5.4.70.0220.00312.49
5.4.60.0110.01112.58
5.4.50.0220.00612.53
5.4.40.0180.00612.55
5.4.30.0100.01112.41
5.4.20.0170.00412.71
5.4.10.0170.00712.44
5.4.00.0150.00712.59
5.3.290.0180.00613.18
5.3.280.0200.00312.88
5.3.270.0160.00813.02
5.3.260.0130.01012.96
5.3.250.0130.01013.02
5.3.240.0050.01912.89
5.3.230.0150.01513.05
5.3.220.0220.01012.72
5.3.210.0120.01012.66
5.3.200.0090.01412.66
5.3.190.0180.01112.88
5.3.180.0130.01012.97
5.3.170.0090.01213.01
5.3.160.0120.00813.07
5.3.150.0150.00913.12
5.3.140.0150.01112.74
5.3.130.0060.01612.84
5.3.120.0160.00713.05
5.3.110.0050.01812.95
5.3.100.0040.01812.84
5.3.90.0110.01413.07
5.3.80.0180.00912.71
5.3.70.0050.01612.69
5.3.60.0120.00912.97
5.3.50.0170.00512.97
5.3.40.0160.00612.76
5.3.30.0140.00912.87
5.3.20.0140.00712.73
5.3.10.0270.02012.61
5.3.00.0170.00312.93
5.2.170.0060.01211.96
5.2.160.0120.00712.09
5.2.150.0090.00912.00
5.2.140.0150.00312.11
5.2.130.0150.00311.96
5.2.120.0110.00511.96
5.2.110.0070.01111.91
5.2.100.0140.00411.91
5.2.90.0070.01111.86
5.2.80.0140.00411.79
5.2.70.0160.00311.90
5.2.60.0030.01411.71
5.2.50.0140.00411.77
5.2.40.0090.00911.83
5.2.30.0060.01211.78
5.2.20.0130.00411.59
5.2.10.0100.00711.73
5.2.00.0100.00711.72
5.1.60.0060.00910.94
5.1.50.0130.00611.05
5.1.40.0110.00411.02
5.1.30.0170.00411.11
5.1.20.0190.00411.10
5.1.10.0110.00711.28
5.1.00.0070.01110.97
5.0.50.0110.00310.74
5.0.40.0130.00010.74
5.0.30.0030.01010.74
5.0.20.0090.00310.74
5.0.10.0100.00210.74
5.0.00.0090.00410.74
4.4.90.0050.00510.74
4.4.80.0090.00010.74
4.4.70.0080.00010.74
4.4.60.0080.00010.74
4.4.50.0050.00310.74
4.4.40.0050.00510.74
4.4.30.0040.00410.74
4.4.20.0060.00310.74
4.4.10.0040.00410.74
4.4.00.0080.00010.74
4.3.110.0050.00310.74
4.3.100.0080.00010.74
4.3.90.0100.00010.74
4.3.80.0080.00010.74
4.3.70.0050.00510.74
4.3.60.0060.00310.74
4.3.50.0050.00510.74
4.3.40.0060.00310.74
4.3.30.0060.00010.74
4.3.20.0070.00010.74
4.3.10.0040.00410.74
4.3.00.0000.00710.74

preferences:
14.4 ms | 455 KiB | 5 Q