3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = ['John', 'Brian', 'Raj']; $salary = ['500', '1000', '2000']; $dpart = ['HTML', 'CSS', 'PHP']; $address = ['Floor 3', 'Floor 5', 'Floor 6']; print_r( array_map( fn(...$col) => vsprintf("%s's salary is %d, depart is %s, address is %s", $col), $name, $salary, $dpart, $address ) );

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.4.120.0120.00920.58
8.4.110.0140.00522.63
8.4.100.0070.01517.71
8.4.90.0140.00718.57
8.4.80.0110.00617.80
8.4.70.0130.00717.64
8.4.60.0130.00818.69
8.4.50.0120.00817.71
8.4.40.0170.00320.58
8.4.30.0100.01320.28
8.4.20.0130.00717.52
8.4.10.0060.00322.19
8.3.250.0120.00718.93
8.3.240.0140.00516.33
8.3.230.0130.00616.57
8.3.220.0080.00717.02
8.3.210.0060.00216.60
8.3.200.0040.00416.61
8.3.190.0040.00418.99
8.3.180.0090.01118.38
8.3.170.0040.01516.45
8.3.160.0040.01516.68
8.3.150.0070.01117.15
8.3.140.0080.00016.52
8.3.130.0100.00018.07
8.3.120.0060.01220.66
8.3.110.0050.00318.45
8.3.100.0060.01018.45
8.3.90.0080.00026.77
8.3.80.0030.00616.50
8.3.70.0070.01416.58
8.3.60.0120.00816.48
8.3.50.0040.01120.18
8.3.40.0080.00522.08
8.3.30.0100.00618.67
8.3.20.0080.00624.18
8.3.10.0000.00724.66
8.3.00.0070.00026.16
8.2.290.0090.01120.54
8.2.280.0130.00720.14
8.2.270.0180.00016.88
8.2.260.0000.00916.75
8.2.250.0080.00016.64
8.2.240.0070.00318.94
8.2.230.0000.00920.94
8.2.220.0040.00424.06
8.2.210.0050.00326.77
8.2.200.0060.00318.54
8.2.190.0040.01116.58
8.2.180.0000.01525.92
8.2.170.0180.00418.96
8.2.160.0040.01122.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00726.16
8.2.110.0100.00019.11
8.2.100.0070.00417.63
8.2.90.0000.00819.09
8.2.80.0060.00317.97
8.2.70.0050.00317.38
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0050.00318.03
8.2.30.0030.00618.09
8.2.20.0000.00720.43
8.2.10.0040.00418.16
8.2.00.0040.00419.21
8.1.330.0040.00421.98
8.1.320.0100.00915.98
8.1.310.0110.00716.77
8.1.300.0060.00320.30
8.1.290.0030.00630.84
8.1.280.0070.01025.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00619.28
8.1.230.0070.00417.48
8.1.220.0000.00817.77
8.1.210.0000.00918.77
8.1.200.0060.00317.35
8.1.190.0040.00417.22
8.1.180.0030.00618.10
8.1.170.0000.00818.69
8.1.160.0040.00418.89
8.1.150.0040.00418.59
8.1.140.0060.00317.51
8.1.130.0030.00518.99
8.1.120.0030.00317.35
8.1.110.0050.00317.45
8.1.100.0000.00717.52
8.1.90.0080.00017.49
8.1.80.0100.00317.37
8.1.70.0140.00017.43
8.1.60.0170.00217.41
8.1.50.0110.00717.36
8.1.40.0180.00017.52
8.1.30.0140.00417.66
8.1.20.0150.00317.43
8.1.10.0090.00917.58
8.1.00.0050.01017.46
8.0.300.0040.00418.77
8.0.290.0050.00216.58
8.0.280.0000.00718.32
8.0.270.0000.00716.75
8.0.260.0000.00618.29
8.0.250.0060.00016.80
8.0.240.0000.00716.89
8.0.230.0060.00016.89
8.0.220.0030.00416.81
8.0.210.0030.00316.83
8.0.200.0100.00516.93
8.0.190.0120.00316.79
8.0.180.0070.00816.86
8.0.170.0120.00216.88
8.0.160.0090.00616.90
8.0.150.0060.00316.83
8.0.140.0030.00716.85
8.0.130.0060.00616.79
8.0.120.0120.00316.67
8.0.110.0030.00616.88
8.0.100.0090.00916.80
8.0.90.0130.00316.86
8.0.80.0120.00416.86
8.0.70.0140.00416.80
8.0.60.0120.00316.91
8.0.50.0150.00016.87
8.0.30.0040.01116.75
8.0.20.0130.00316.92
8.0.10.0160.00016.89
7.4.330.0000.00515.55
7.4.320.0030.00316.58
7.4.300.0080.00416.43
7.4.290.0090.00416.63
7.4.280.0120.00016.41
7.4.270.0140.00316.44
7.4.260.0100.00316.41
7.4.250.0090.00516.39
7.4.240.0130.00016.48
7.4.230.0120.00316.47
7.4.220.0040.01116.41
7.4.210.0090.00616.44
7.4.200.0050.00916.34
7.4.190.0090.00416.63
7.4.180.0060.00616.68
7.4.160.0070.00716.56
7.4.150.0150.00016.38
7.4.140.0150.00016.42
7.4.130.0080.00416.29
7.4.120.0110.00016.27
7.4.110.0040.00416.21
7.4.100.0050.00316.41
7.4.90.0040.00416.55
7.4.80.0040.00416.37
7.4.70.0030.00616.43
7.4.60.0040.00416.41
7.4.50.0120.00016.32
7.4.40.0030.00616.43
7.4.30.0040.00416.47
7.4.20.0000.00816.16
7.4.10.0030.00616.36
7.4.00.0050.00316.44

preferences:
18.24 ms | 403 KiB | 5 Q