3v4l.org

run code in 500+ PHP versions simultaneously
<?php function button($text, $value, $col = 6, $row = 1, $color = "#ffffff", $size = 'large', $type = 'reply'){ return [ 'Columns' => $col, 'Rows' => $row, 'Text' => '<font color="'.$color.'"><b>'.$text.'</b></font>', 'BgColor' => "#30cecb", 'TextVAlign' => 'middle', 'TextHAlign' => 'middle', 'TextSize' => $size, 'ActionType' => $type, 'ActionBody' => $value, ]; } print_r(button(text:'Text here', color:'#333333', value:'value here'));

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.30.0120.00617.57
8.5.20.0110.00719.57
8.5.10.0100.00816.70
8.5.00.0120.01019.96
8.4.180.0130.01019.63
8.4.170.0110.01120.65
8.4.160.0120.00923.94
8.4.150.0080.00416.90
8.4.140.0120.00917.66
8.4.130.0100.00919.00
8.4.120.0160.00423.73
8.4.110.0130.00618.67
8.4.100.0120.00818.82
8.4.90.0140.00617.60
8.4.80.0140.00617.67
8.4.70.0060.00317.49
8.4.60.0120.00918.70
8.4.50.0130.00817.79
8.4.40.0100.01017.58
8.4.30.0040.00422.22
8.4.20.0030.00619.41
8.4.10.0090.00019.51
8.3.300.0100.01020.72
8.3.290.0130.00920.69
8.3.280.0080.01120.28
8.3.270.0100.00916.84
8.3.260.0120.00816.46
8.3.250.0100.00919.21
8.3.240.0140.00619.00
8.3.230.0130.00616.66
8.3.220.0160.00716.79
8.3.210.0080.00716.48
8.3.200.0020.00616.82
8.3.190.0110.00918.86
8.3.180.0070.00117.14
8.3.170.0110.00416.57
8.3.160.0090.00918.43
8.3.150.0080.00020.72
8.3.140.0070.00716.68
8.3.130.0130.00618.54
8.3.120.0110.00420.88
8.3.110.0050.00316.56
8.3.100.0110.00718.51
8.3.90.0100.00026.77
8.3.80.0040.00419.36
8.3.70.0120.00318.25
8.3.60.0070.01018.56
8.3.50.0120.00524.46
8.3.40.0080.00621.89
8.3.30.0110.00418.63
8.3.20.0070.00024.18
8.3.10.0050.00324.66
8.3.00.0050.00326.16
8.2.300.0100.01022.13
8.2.290.0100.01020.55
8.2.280.0120.00718.45
8.2.270.0040.01417.27
8.2.260.0000.00718.52
8.2.250.0090.00016.68
8.2.240.0060.00916.92
8.2.230.0070.00420.94
8.2.220.0030.00637.54
8.2.210.0120.00626.77
8.2.200.0090.00018.88
8.2.190.0110.01116.72
8.2.180.0130.00725.92
8.2.170.0040.01118.82
8.2.160.0080.00522.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0000.00826.16
8.2.120.0000.00826.35
8.2.110.0060.00620.47
8.2.100.0060.00318.97
8.1.340.0130.00721.56
8.1.330.0110.01021.84
8.1.320.0130.00715.93
8.1.310.0090.00616.73
8.1.300.0080.00418.12
8.1.290.0030.00630.84
8.1.280.0110.00425.92
8.1.270.0090.00022.18
8.1.260.0050.00328.09
8.1.250.0040.00428.09
8.1.240.0030.00618.63
8.1.230.0030.00618.74
8.0.00.0040.01416.84
7.4.130.0120.00616.29
7.4.120.0070.01016.21
7.4.110.0120.00616.38
7.4.100.0040.01416.36
7.4.90.0130.00616.19
7.4.80.0120.01216.23
7.4.70.0150.00616.36
7.4.60.0120.00616.30
7.4.50.0100.01315.86
7.4.40.0000.01816.44
7.4.30.0040.01316.07
7.4.20.0120.00916.23
7.4.10.0180.00016.25
7.4.00.0100.01416.32
7.3.250.0130.00316.28
7.3.240.0100.00716.06
7.3.230.0120.00616.30
7.3.220.0070.01416.29
7.3.210.0120.01216.19
7.3.200.0130.01016.12
7.3.190.0060.01216.26
7.3.180.0140.00716.13
7.3.170.0240.00016.20
7.3.160.0110.00716.14
7.3.150.0120.00916.20
7.3.140.0090.00916.22
7.3.130.0130.01316.14
7.3.120.0110.00716.23
7.3.110.0110.00716.43
7.3.100.0150.00316.20
7.3.90.0000.01616.07
7.3.80.0110.00716.10
7.3.70.0110.00716.11
7.3.60.0100.00716.15
7.3.50.0090.00916.06
7.3.40.0100.01116.14
7.3.30.0140.00416.00
7.3.20.0130.00616.14
7.3.10.0070.01016.20
7.3.00.0090.01216.02

preferences:
81.64 ms | 1043 KiB | 5 Q