3v4l.org

run code in 300+ PHP versions simultaneously
<?php $max = 9; $a = []; $a = [ 'min' => 10, 'max' => $max < $a['min'] ? $a['min'] : $max, ]; var_dump($a);

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.00.0120.00920.26
8.4.150.0020.00014.05
8.4.140.0170.00517.59
8.4.130.0060.00317.87
8.4.120.0070.00120.34
8.4.110.0130.00722.57
8.4.100.0130.00917.73
8.4.90.0130.00517.69
8.4.80.0090.01217.80
8.4.70.0100.01018.04
8.4.60.0040.00518.81
8.4.50.0120.01018.36
8.4.40.0090.00619.63
8.4.30.0100.01320.18
8.4.20.0070.01118.13
8.4.10.0060.00320.71
8.3.280.0030.00014.05
8.3.270.0080.01116.77
8.3.260.0100.00916.63
8.3.250.0120.00618.89
8.3.240.0100.01016.63
8.3.230.0150.00716.90
8.3.220.0160.00417.35
8.3.210.0050.00216.70
8.3.200.0070.00316.98
8.3.190.0070.00417.04
8.3.180.0060.01318.50
8.3.170.0090.00920.54
8.3.160.0050.00217.17
8.3.150.0070.01316.98
8.3.140.0060.00316.60
8.3.130.0040.00418.48
8.3.120.0030.00619.04
8.3.110.0090.00016.95
8.3.100.0070.01120.53
8.3.90.0040.00426.77
8.3.80.0080.00319.36
8.3.70.0080.00816.61
8.3.60.0110.01118.45
8.3.50.0110.00623.52
8.3.40.0100.00721.82
8.3.30.0150.00018.68
8.3.20.0040.00424.18
8.3.10.0030.00624.66
8.3.00.0080.00026.16
8.2.290.0090.01020.42
8.2.280.0120.00818.74
8.2.270.0100.01017.04
8.2.260.0070.00716.84
8.2.250.0040.00418.79
8.2.240.0160.00316.60
8.2.230.0000.00820.94
8.2.220.0060.00324.06
8.2.210.0080.00026.77
8.2.200.0090.00018.88
8.2.190.0100.01016.88
8.2.180.0090.00625.92
8.2.170.0070.01418.91
8.2.160.0070.00722.96
8.2.150.0000.00825.66
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0000.00826.35
8.2.110.0080.00319.25
8.2.100.0100.00317.84
8.2.90.0040.00417.97
8.2.80.0080.00019.66
8.2.70.0000.00818.00
8.2.60.0090.00018.16
8.2.50.0060.00318.10
8.2.40.0030.00619.46
8.2.30.0040.00419.39
8.2.20.0040.00418.11
8.2.10.0000.00719.32
8.2.00.0000.00719.41
8.1.330.0090.01016.46
8.1.320.0120.00816.39
8.1.310.0150.00318.53
8.1.300.0180.00019.90
8.1.290.0030.00630.84
8.1.280.0140.00025.92
8.1.270.0060.00323.99
8.1.260.0040.00428.09
8.1.250.0050.00328.09
8.1.240.0000.01120.83
8.1.230.0120.00020.97
8.1.220.0030.00517.80
8.1.210.0040.00418.89
8.1.200.0070.00317.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0090.00018.61
8.1.160.0070.00019.12
8.1.150.0040.00418.93
8.1.140.0000.00718.79
8.1.130.0000.00720.14
8.1.120.0000.00717.48
8.1.110.0030.00617.38
8.1.100.0040.00417.47
8.1.90.0000.00717.43
8.1.80.0040.00717.50
8.1.70.0030.00517.44
8.1.60.0040.00417.64
8.1.50.0150.00317.41
8.1.40.0120.00317.47
8.1.30.0090.00417.57
8.1.20.0080.00317.58
8.1.10.0030.00717.38
8.1.00.0140.00217.41
8.0.300.0050.00322.03
8.0.290.0070.00016.63
8.0.280.0070.00018.41
8.0.270.0000.00716.84
8.0.260.0000.00620.24
8.0.250.0070.00017.02
8.0.240.0060.00016.93
8.0.230.0050.00216.98
8.0.220.0070.00017.00
8.0.210.0030.00516.95
8.0.200.0080.00017.02
8.0.190.0040.00417.03
8.0.180.0110.00016.93
8.0.170.0070.00416.83
8.0.160.0060.00416.93
8.0.150.0110.00316.81
8.0.140.0090.00416.82
8.0.130.0100.00315.12
8.0.120.0070.00716.92
8.0.110.0090.00516.87
8.0.100.0060.00816.81
8.0.90.0090.00516.82
8.0.80.0080.00816.88
8.0.70.0090.00516.85
8.0.60.0120.00116.76
8.0.50.0070.00616.83
8.0.30.0090.00816.91
8.0.20.0120.00716.90
8.0.10.0100.00416.94
8.0.00.0140.00516.76
7.4.330.0000.00515.55
7.4.320.0060.00016.61
7.4.300.0060.00016.36
7.4.290.0050.00516.44
7.4.280.0100.00616.38
7.4.270.0100.00416.43
7.4.260.0040.00814.89
7.4.250.0090.00716.44
7.4.240.0110.00416.54
7.4.230.0150.00016.47
7.4.220.0090.00216.46
7.4.210.0080.00816.59
7.4.200.0070.00416.47
7.4.190.0100.01116.55
7.4.180.0160.00316.51
7.4.160.0130.00716.45
7.4.150.0190.00016.42
7.4.140.0130.00516.19
7.4.130.0140.00716.41
7.4.120.0150.00816.43
7.4.110.0110.00816.39
7.4.100.0150.00816.33
7.4.90.0100.00916.40
7.4.80.0150.00416.39
7.4.70.0060.00816.22
7.4.60.0070.00716.29
7.4.50.0120.00316.21
7.4.40.0130.00616.46
7.4.30.0140.00016.36
7.4.20.0120.00716.37
7.4.10.0060.00816.39
7.4.00.0110.00816.30
7.3.330.0090.00516.30
7.3.320.0090.00514.71
7.3.310.0080.00516.34
7.3.300.0110.00416.28
7.3.290.0120.00816.26
7.3.280.0180.00316.17
7.3.270.0190.00016.02
7.3.260.0160.00316.36
7.3.250.0160.00516.05
7.3.240.0160.00616.20
7.3.230.0100.01016.18
7.3.220.0120.01216.30
7.3.210.0110.00816.33
7.3.200.0170.00216.27
7.3.190.0100.00916.28
7.3.180.0150.00716.28
7.3.170.0200.00216.29
7.3.160.0130.01016.32
7.3.150.0170.00216.29
7.3.140.0170.00516.30
7.3.130.0120.00916.28
7.3.120.0110.00916.21
7.3.110.0110.00816.25
7.3.100.0120.00716.28
7.3.90.0130.00416.46
7.3.80.0120.00716.19
7.3.70.0150.00416.29
7.3.60.0130.00616.30
7.3.50.0100.00816.41
7.3.40.0140.00416.25
7.3.30.0100.00816.32
7.3.20.0140.00716.46
7.3.10.0160.00316.36
7.3.00.0120.00716.29
7.2.340.0180.00516.13
7.2.330.0070.01216.39
7.2.320.0180.00216.36
7.2.310.0120.00816.22
7.2.300.0200.00416.21
7.2.290.0150.00616.24
7.2.280.0140.00716.35
7.2.270.0170.00516.31
7.2.260.0140.00816.32
7.2.250.0090.01116.48
7.2.240.0150.00516.23
7.2.230.0120.00716.41
7.2.220.0120.00616.46
7.2.210.0130.00616.31
7.2.200.0110.00816.51
7.2.190.0050.01416.33
7.2.180.0130.00616.40
7.2.170.0130.00716.35
7.2.160.0120.00816.50
7.2.150.0160.00516.48
7.2.140.0160.00416.51
7.2.130.0310.00316.54
7.2.120.0120.00816.37
7.2.110.0090.00916.42
7.2.100.0130.00616.50
7.2.90.0120.00916.39
7.2.80.0150.00816.33
7.2.70.0130.00716.46
7.2.60.0160.00516.41
7.2.50.0120.00816.29
7.2.40.0100.00916.38
7.2.30.0130.00716.45
7.2.20.0140.00716.42
7.2.10.0140.00616.43
7.2.00.0090.01116.30

preferences:
31.03 ms | 403 KiB | 5 Q