3v4l.org

run code in 300+ PHP versions simultaneously
<?php $restrictions = ["free" => ["price" => 100, "product" => ["fish", "shellfish", "meat", "port"]]]; echo json_encode($restrictions);

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.3.60.0040.01118.30
8.3.50.0130.00720.24
8.3.40.0100.01020.21
8.3.30.0070.00718.45
8.3.20.0030.00624.18
8.3.10.0030.00624.66
8.3.00.0040.00426.16
8.2.180.0070.00725.92
8.2.170.0120.00618.83
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0020.00526.16
8.2.120.0070.00026.16
8.2.110.0060.00319.16
8.2.100.0000.01117.84
8.2.90.0040.00417.75
8.2.80.0070.00418.70
8.2.70.0040.00417.63
8.2.60.0030.00517.50
8.2.50.0060.00317.98
8.2.40.0070.00018.16
8.2.30.0070.00018.02
8.2.20.0040.00419.21
8.2.10.0070.00017.98
8.2.00.0040.00419.22
8.1.280.0100.01025.92
8.1.270.0040.00424.66
8.1.260.0000.00726.35
8.1.250.0030.00528.09
8.1.240.0060.00323.95
8.1.230.0040.00821.03
8.1.220.0030.00518.42
8.1.210.0000.00719.10
8.1.200.0030.00617.35
8.1.190.0090.00017.10
8.1.180.0080.00318.10
8.1.170.0000.00817.62
8.1.160.0070.00018.73
8.1.150.0040.00418.57
8.1.140.0040.00417.37
8.1.130.0030.00319.04
8.1.120.0000.00717.31
8.1.110.0100.00517.33
8.1.100.0100.00517.32
8.1.90.0130.00317.25
8.1.80.0100.00617.40
8.1.70.0050.01117.28
8.1.60.0150.00417.51
8.1.50.0080.00817.43
8.1.40.0180.00017.35
8.1.30.0140.00417.46
8.1.20.0110.00717.59
8.1.10.0160.00217.37
8.1.00.0160.00317.41
8.0.300.0080.00019.92
8.0.290.0040.00416.75
8.0.280.0070.00018.43
8.0.270.0030.00317.11
8.0.260.0060.00018.33
8.0.250.0000.00616.84
8.0.240.0100.00516.86
8.0.230.0050.01016.74
8.0.220.0100.00516.68
8.0.210.0070.00716.75
8.0.200.0100.00816.74
8.0.190.0000.01516.64
8.0.180.0120.00316.70
8.0.170.0110.00416.78
8.0.160.0050.01016.90
8.0.150.0120.00316.75
8.0.140.0150.00016.82
8.0.130.0090.00616.60
8.0.120.0100.00716.67
8.0.110.0070.00716.74
8.0.100.0110.00416.81
8.0.90.0140.00316.79
8.0.80.0100.00516.70
8.0.70.0090.00716.67
8.0.60.0100.00516.74
8.0.50.0070.00716.76
8.0.30.0040.01116.70
8.0.20.0120.00216.77
8.0.10.0140.00016.87
7.4.330.0030.00315.55
7.4.320.0070.00316.31
7.4.300.0170.00016.38
7.4.290.0130.00416.38
7.4.280.0170.00016.41
7.4.270.0050.00816.21
7.4.260.0170.00016.36
7.4.250.0070.00416.40
7.4.240.0040.00616.21
7.4.230.0070.00316.04
7.4.220.0100.00016.06
7.4.210.0100.00016.00
7.4.200.0000.01016.18
7.4.190.0100.00016.47
7.4.180.0050.00516.38
7.4.160.0060.00516.30
7.4.150.0070.00416.18
7.4.140.0100.00016.29
7.4.130.0070.00315.93
7.4.120.0080.00316.08
7.4.110.0070.00416.04
7.4.100.0080.00416.02
7.4.90.0070.00316.00
7.4.80.0080.00315.91
7.4.70.0000.01016.25
7.4.60.0070.00415.94
7.4.50.0050.00515.83
7.4.40.0070.00316.15
7.4.30.0000.01016.18
7.4.20.0100.00016.20
7.4.10.0050.00516.25
7.4.00.0030.00615.98

preferences:
47.59 ms | 401 KiB | 5 Q