3v4l.org

run code in 500+ PHP versions simultaneously
<?php function to_ascii_seven_segment( ... $numbers) { return implode("\n",array_map(fn($n)=>implode("\n",array_map(fn($r)=>join('',array_map(fn($d)=>substr( " _ _ _ _ _ _ _ _ ". " | | | _| _| |_| |_ |_ | |_| |_| ". " |_| | |_ _| | _| |_| | |_| _| " ,$r*44+4*(array_search($d,str_split(" 0123456789"))),4),str_split($n))),range(0,3))), $numbers)); } echo to_ascii_seven_segment( '1337', '7083170', '5318008', '53177187714' );

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.70.0110.00818.59
8.5.60.0140.00516.73
8.5.50.0080.00816.46
8.5.30.0100.00817.63
8.5.20.0110.00919.22
8.5.10.0070.00116.75
8.5.00.0130.00819.63
8.4.220.0080.01219.53
8.4.210.0100.00719.48
8.4.180.0130.01119.68
8.4.170.0120.01020.48
8.4.160.0120.01220.67
8.4.150.0070.00616.86
8.4.140.0110.01117.81
8.4.130.0070.00419.04
8.4.120.0040.00518.72
8.4.110.0110.00918.96
8.4.100.0120.01017.83
8.4.90.0090.01120.54
8.4.80.0140.00419.05
8.4.70.0070.00820.59
8.4.60.0080.00320.52
8.4.50.0100.00818.65
8.4.40.0170.00318.51
8.4.30.0070.01320.12
8.4.20.0160.00319.71
8.4.10.0000.00920.51
8.3.310.0110.00918.54
8.3.300.0040.00519.37
8.3.290.0090.01220.95
8.3.280.0100.01018.39
8.3.270.0090.01116.54
8.3.260.0120.00716.43
8.3.250.0110.00918.45
8.3.240.0040.00516.50
8.3.230.0100.00916.75
8.3.220.0050.00418.91
8.3.210.0090.01116.67
8.3.200.0050.00316.56
8.3.190.0100.00917.14
8.3.180.0140.00519.13
8.3.170.0190.00017.39
8.3.160.0030.00716.52
8.3.150.0060.01216.62
8.3.140.0120.00616.72
8.3.130.0070.01118.33
8.3.120.0030.00618.86
8.3.110.0000.01916.74
8.3.100.0030.00516.47
8.3.90.0070.00726.77
8.3.80.0070.00316.63
8.3.70.0180.00316.58
8.3.60.0160.00616.38
8.3.50.0250.01023.46
8.3.40.0140.00719.41
8.3.30.0130.00318.68
8.3.20.0080.00024.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.310.0110.00718.08
8.2.300.0110.01020.39
8.2.290.0140.00617.16
8.2.280.0120.01018.12
8.2.270.0040.01116.74
8.2.260.0040.00417.21
8.2.250.0070.00318.40
8.2.240.0030.00716.61
8.2.230.0070.00320.94
8.2.220.0060.00624.06
8.2.210.0130.00326.77
8.2.200.0060.00316.50
8.2.190.0120.00916.58
8.2.180.0070.01125.92
8.2.170.0070.01022.96
8.2.160.0110.00422.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00018.59
8.2.110.0090.00020.93
8.2.100.0040.00817.78
8.2.90.0040.00417.93
8.2.80.0000.00818.73
8.2.70.0040.00417.38
8.2.60.0030.00517.48
8.2.50.0000.00818.05
8.2.40.0030.00519.88
8.2.30.0040.00418.06
8.2.20.0070.00017.96
8.2.10.0000.00819.25
8.2.00.0000.00719.25
8.1.340.0130.00621.72
8.1.330.0120.00816.10
8.1.320.0130.00617.81
8.1.310.0040.00716.89
8.1.300.0130.00617.86
8.1.290.0070.00330.84
8.1.280.0180.00325.92
8.1.270.0090.00023.89
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00719.14
8.1.230.0040.00819.17
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0040.00417.22
8.1.180.0050.00318.10
8.1.170.0000.00817.62
8.1.160.0040.00418.90
8.1.150.0040.00418.85
8.1.140.0040.00418.79
8.1.130.0000.00820.09
8.1.120.0000.01017.43
8.1.110.0000.00817.37
8.1.100.0000.01117.46
8.1.90.0000.00817.42
8.1.80.0030.00617.36
8.1.70.0030.00517.41
8.1.60.0040.00417.54
8.1.50.0050.00317.37
8.1.40.0050.00317.49
8.1.30.0000.00817.59
8.1.20.0080.00017.66
8.1.10.0040.00417.59
8.1.00.0000.00817.44
8.0.300.0110.00019.66
8.0.290.0040.00416.75
8.0.280.0000.00818.42
8.0.270.0000.00718.03
8.0.260.0040.00418.51
8.0.250.0000.00716.91
8.0.240.0000.00716.83
8.0.230.0020.00516.86
8.0.220.0030.00316.80
8.0.210.0030.00516.87
8.0.200.0000.00616.96
8.0.190.0040.00416.85
8.0.180.0060.00316.80
8.0.170.0030.00616.86
8.0.160.0000.00716.98
8.0.150.0030.00616.74
8.0.140.0030.00516.80
8.0.130.0030.00313.32
8.0.120.0050.00316.80
8.0.110.0070.00016.80
8.0.100.0070.00016.94
8.0.90.0030.00616.98
8.0.80.0100.00816.93
8.0.70.0070.00016.85
8.0.60.0000.00716.81
8.0.50.0040.00416.73
8.0.30.0080.00817.17
8.0.20.0140.00917.25
8.0.10.0040.00416.88
8.0.00.0090.01316.48
7.4.330.0050.00015.55
7.4.320.0000.00616.55
7.4.300.0000.00616.50
7.4.290.0000.00816.52
7.4.280.0050.00316.55
7.4.270.0030.00316.54
7.4.260.0000.00613.19
7.4.250.0040.00416.63
7.4.240.0020.00516.50
7.4.230.0000.00716.32
7.4.220.0050.00216.65
7.4.210.0070.00916.55
7.4.200.0040.00416.69
7.4.130.0120.00616.49
7.4.120.0130.00716.41
7.4.110.0070.01016.36
7.4.100.0060.01016.45
7.4.90.0140.00416.56
7.4.80.0140.00319.39
7.4.70.0030.01516.62
7.4.60.0040.01316.55
7.4.50.0120.00616.22
7.4.40.0080.01416.27
7.4.30.0110.01116.54
7.4.20.0140.00716.37
7.4.10.0140.00816.41
7.4.00.0150.00516.69
7.3.330.0030.00316.02
7.3.320.0000.00513.15
7.3.310.0000.00716.15
7.3.300.0030.00316.05
7.3.290.0080.00616.14
7.3.280.0030.01616.19
7.3.260.0070.01016.21
7.3.240.0070.00916.26
7.3.230.0110.00716.32
7.3.210.0100.00716.43
7.3.200.0070.01316.21
7.3.190.0030.01316.47
7.3.180.0150.00316.07
7.3.170.0070.01316.10
7.3.160.0100.00716.10
7.3.150.0100.01016.22
7.3.140.0110.01116.06
7.3.130.0140.00816.13
7.3.120.0100.00716.21
7.3.110.0100.00916.13
7.3.100.0060.01116.07
7.3.90.0060.01116.23
7.3.80.0120.00916.27
7.3.70.0120.00516.18
7.3.60.0090.00716.20
7.3.50.0100.00816.12
7.3.40.0110.00716.25
7.3.30.0080.01216.13
7.3.20.0110.00916.34
7.3.10.0110.00716.28
7.3.00.0100.00716.28
7.2.330.0090.00916.33
7.2.310.0070.01116.36
7.2.300.0070.01016.18
7.2.290.0080.01216.08
7.2.280.0090.01116.25
7.2.270.0090.01416.42
7.2.260.0090.01416.19
7.2.250.0130.00516.38
7.2.240.0090.01116.06
7.2.230.0140.00916.19
7.2.220.0060.01416.15
7.2.210.0080.00816.35
7.2.200.0030.01416.39
7.2.190.0130.00616.33
7.2.180.0090.00916.33
7.2.170.0080.00916.36
7.2.160.0130.00516.17
7.2.150.0130.00516.46
7.2.140.0070.01216.21
7.2.130.0110.00916.22
7.2.120.0050.01516.28
7.2.110.0100.01316.33
7.2.100.0080.01216.31
7.2.90.0120.00816.26
7.2.80.0080.01216.41
7.2.70.0120.00816.30
7.2.60.0110.00816.49
7.2.50.0080.01316.37
7.2.40.0150.00516.30
7.2.30.0130.01316.44
7.2.20.0070.01016.20
7.2.10.0280.01016.31
7.2.00.0090.01316.14

preferences:
55.55 ms | 1580 KiB | 5 Q