3v4l.org

run code in 300+ PHP versions simultaneously
<?php $limit1 = array( 1, 10 ); $limit2 = array( 2, 60 ); if( $limit1 > $limit2 ){ echo $limit1[0] . ',' . $limit1[1]; } else{ echo $limit2[0] . ',' . $limit2[1]; }

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.0120.00318.30
8.3.50.0130.00721.93
8.3.40.0100.00618.77
8.3.30.0030.01219.25
8.3.20.0000.00820.09
8.3.10.0050.00320.25
8.3.00.0080.00022.21
8.2.180.0090.00616.38
8.2.170.0150.00022.96
8.2.160.0040.01121.02
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0110.00626.16
8.2.120.0080.00017.63
8.2.110.0030.00622.25
8.2.100.0060.00617.84
8.2.90.0000.00819.36
8.2.80.0040.00419.76
8.2.70.0040.00417.50
8.2.60.0100.00817.53
8.2.50.0040.00418.07
8.2.40.0030.00518.22
8.2.30.0000.00718.14
8.2.20.0040.00417.70
8.2.10.0040.00417.57
8.2.00.0070.00017.76
8.1.280.0160.00725.92
8.1.270.0060.00922.12
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00423.82
8.1.230.0000.01119.13
8.1.220.0070.00017.74
8.1.210.0030.00618.77
8.1.200.0040.00417.11
8.1.190.0040.00417.53
8.1.180.0080.00018.10
8.1.170.0030.00618.39
8.1.160.0000.00721.91
8.1.150.0040.00418.48
8.1.140.0000.00717.50
8.1.130.0040.00417.87
8.1.120.0040.00417.36
8.1.110.0030.00617.51
8.1.100.0040.00417.37
8.1.90.0080.00017.49
8.1.80.0030.00317.39
8.1.70.0020.00517.34
8.1.60.0030.00717.47
8.1.50.0030.00517.38
8.1.40.0000.01017.42
8.1.30.0080.00017.70
8.1.20.0050.00317.57
8.1.10.0000.00717.59
8.1.00.0060.00317.41
8.0.300.0080.00018.77
8.0.290.0030.00517.16
8.0.280.0000.00718.36
8.0.270.0070.00017.26
8.0.260.0080.00016.82
8.0.250.0000.00716.84
8.0.240.0060.00316.95
8.0.230.0000.00716.81
8.0.220.0030.00316.89
8.0.210.0000.00716.80
8.0.200.0030.00316.90
8.0.190.0050.00316.97
8.0.180.0050.00216.96
8.0.170.0000.00816.81
8.0.160.0070.00016.94
8.0.150.0000.00716.94
8.0.140.0070.00016.87
8.0.130.0050.00013.34
8.0.120.0080.00016.86
8.0.110.0040.00416.79
8.0.100.0000.00716.95
8.0.90.0000.00716.83
8.0.80.0110.00516.89
8.0.70.0040.00416.88
8.0.60.0040.00416.90
8.0.50.0000.00716.78
8.0.30.0130.00516.85
8.0.20.0080.01117.40
8.0.10.0050.00316.89
8.0.00.0100.00716.81
7.4.330.0040.00315.00
7.4.320.0060.00016.52
7.4.300.0000.00616.50
7.4.290.0000.00716.61
7.4.280.0040.00716.41
7.4.270.0000.00716.51
7.4.260.0030.00316.56
7.4.250.0040.00416.59
7.4.240.0030.00416.57
7.4.230.0000.00716.51
7.4.220.0090.00616.47
7.4.210.0090.00516.58
7.4.200.0000.00716.60
7.4.190.0030.00316.56
7.4.160.0140.01016.47
7.4.150.0060.01817.40
7.4.140.0100.01017.86
7.4.130.0130.00816.44
7.4.120.0160.00316.50
7.4.110.0080.00816.50
7.4.100.0120.00616.39
7.4.90.0060.01116.50
7.4.80.0110.00719.39
7.4.70.0130.00316.55
7.4.60.0060.01016.40
7.4.50.0000.00916.34
7.4.40.0060.01222.77
7.4.30.0140.00416.68
7.4.00.0060.01114.86
7.3.330.0050.00013.09
7.3.320.0030.00313.13
7.3.310.0000.00816.26
7.3.300.0050.00216.32
7.3.290.0080.00516.22
7.3.280.0080.00916.26
7.3.270.0070.01117.40
7.3.260.0060.01016.55
7.3.250.0110.00716.35
7.3.240.0100.00716.50
7.3.230.0100.00716.55
7.3.210.0100.00616.31
7.3.200.0090.01219.39
7.3.190.0180.00616.30
7.3.180.0040.01216.37
7.3.170.0100.00616.43
7.3.160.0120.00916.29
7.3.120.0070.01114.89
7.3.110.0080.00414.84
7.3.100.0090.00614.81
7.3.90.0000.01314.90
7.3.80.0060.00615.04
7.3.70.0070.00714.59
7.3.60.0000.01114.91
7.3.50.0070.00314.54
7.3.40.0000.01114.75
7.3.30.0070.00714.81
7.3.20.0030.01416.57
7.3.10.0070.00816.71
7.3.00.0050.00716.65
7.2.330.0000.01816.85
7.2.320.0070.01016.46
7.2.310.0080.00816.35
7.2.300.0040.02016.81
7.2.290.0160.00316.45
7.2.250.0070.01415.00
7.2.240.0060.01214.64
7.2.230.0060.00914.84
7.2.220.0130.00014.96
7.2.210.0040.00715.27
7.2.200.0050.00515.20
7.2.190.0090.00314.75
7.2.180.0060.00314.82
7.2.170.0040.00414.83
7.2.130.0000.01416.99
7.2.120.0000.01716.79
7.2.110.0060.00617.05
7.2.100.0030.00616.74
7.2.90.0060.00916.95
7.2.80.0000.01116.86
7.2.70.0100.00716.88
7.2.60.0060.00816.87
7.2.50.0030.01016.64
7.2.40.0110.00017.04
7.2.30.0040.01217.12
7.2.20.0100.00616.93
7.2.10.0110.00016.95
7.2.00.0060.00918.15
7.1.330.0030.00916.02
7.1.320.0040.00715.70
7.1.310.0060.00616.03
7.1.300.0100.00315.97
7.1.290.0000.01415.55
7.1.280.0070.00315.54
7.1.270.0000.01515.78
7.1.260.0060.00615.69
7.1.250.0090.00615.77
7.1.200.0250.00615.49
7.1.100.0630.00314.16
7.1.70.0040.00416.89
7.1.60.0040.00717.25
7.1.50.0090.01516.82
7.1.00.0030.07722.46
7.0.200.0070.00716.64
7.0.140.0000.07022.04
7.0.60.0070.08719.89
7.0.50.0170.07017.89
7.0.40.0000.06020.40
7.0.30.0270.06720.29
7.0.20.0170.04320.18
7.0.10.0200.07720.21
7.0.00.0100.04020.19
5.6.280.0000.07721.09
5.6.210.0100.04720.69
5.6.200.0130.03718.11
5.6.190.0070.05320.41
5.6.180.3330.04720.57
5.6.170.0270.08320.37
5.6.160.0070.05020.44
5.6.150.0130.04718.18
5.6.140.0130.06318.07
5.6.130.0070.08018.11
5.6.120.0100.03320.89
5.6.110.0030.08721.04
5.6.100.0000.05021.12
5.6.90.0100.07320.99
5.6.80.0030.07720.39
5.6.70.0330.06720.38
5.5.350.0070.08020.43
5.5.340.0030.08317.95
5.5.330.0030.07020.21
5.5.320.0170.04320.51
5.5.310.0300.02720.28
5.5.300.0100.07717.88
5.5.290.0070.05017.92
5.5.280.0170.04320.96
5.5.270.0130.06320.72
5.5.260.0200.07020.96
5.5.250.0030.08320.77
5.5.240.0000.08320.36
5.4.450.0330.04319.24
5.4.440.0230.05319.49
5.4.430.0100.05719.47
5.4.420.0100.06019.46
5.4.410.0030.06719.35
5.4.400.0070.05318.79
5.4.390.0130.05018.74
5.4.380.0270.05318.50
5.4.370.0070.06018.55
5.4.360.0230.04018.68
5.4.350.0270.04718.61
5.4.340.0230.04718.62
5.4.320.0080.03512.45
5.4.310.0020.04012.45
5.4.300.0070.03412.45
5.4.290.0010.04312.45
5.4.280.0070.03612.34
5.4.270.0170.04319.01
5.4.260.0070.05319.00
5.4.250.0100.06319.04
5.4.240.0170.05718.99
5.4.230.0070.08718.95
5.4.220.0170.07019.16
5.4.210.0000.08318.74
5.4.200.0070.06318.98
5.4.190.0100.06718.92
5.4.180.0170.04718.98
5.4.170.0270.05718.98
5.4.160.0170.04318.75
5.4.150.0200.09018.89
5.4.140.0070.06016.55
5.4.130.0100.07316.57
5.4.120.0070.06016.50
5.4.110.0070.06016.35
5.4.100.0130.04716.37
5.4.90.0200.05316.58
5.4.80.0200.06016.53
5.4.70.0100.06716.58
5.4.60.0130.06716.49
5.4.50.0130.04716.49
5.4.40.0100.06016.52
5.4.30.0030.07316.27
5.4.20.0100.06316.54
5.4.10.0130.06716.32
5.4.00.0070.06315.77
5.3.290.0090.03912.80
5.3.280.0000.08014.78
5.3.270.0070.08014.59
5.3.260.0100.06014.80
5.3.250.0070.06714.74
5.3.240.0070.05314.78
5.3.230.0100.06014.77
5.3.220.0170.06014.73
5.3.210.0100.05714.56
5.3.200.0130.06314.63
5.3.190.0170.06314.36
5.3.180.0070.06014.65
5.3.170.0070.05314.49
5.3.160.0070.06314.63
5.3.150.0100.07714.67
5.3.140.0100.05014.53
5.3.130.0070.08014.53
5.3.120.0200.05314.48
5.3.110.0100.06314.74
5.3.100.0000.07014.19
5.3.90.0070.05314.21
5.3.80.0070.05714.08
5.3.70.0200.05314.18
5.3.60.0170.06014.10
5.3.50.0230.05714.05
5.3.40.0130.06714.01
5.3.30.0130.06013.99
5.3.20.0100.05713.50
5.3.10.0170.04313.64
5.3.00.0130.04713.70
5.2.170.0070.04711.12
5.2.160.0230.04011.07
5.2.150.0000.06311.19
5.2.140.0070.06011.27
5.2.130.0100.04011.29
5.2.120.0070.05711.31
5.2.110.0070.04311.08
5.2.100.0070.05011.10
5.2.90.0130.05011.25
5.2.80.0100.05311.07
5.2.70.0000.05311.02
5.2.60.0170.04711.28
5.2.50.0070.04710.98
5.2.40.0070.04311.21
5.2.30.0030.04311.16
5.2.20.0030.04711.00
5.2.10.0130.04711.02
5.2.00.0170.03711.01
5.1.60.0030.04710.27
5.1.50.0030.05010.19
5.1.40.0070.04310.28
5.1.30.0070.03310.20
5.1.20.0070.03710.34
5.1.10.0130.04010.11
5.1.00.0030.03710.05
5.0.50.0000.0338.59
5.0.40.0070.0378.66
5.0.30.0030.0578.19
5.0.20.0030.0378.18
5.0.10.0100.0378.48
5.0.00.0000.0538.41
4.4.90.0000.0277.47
4.4.80.0070.0307.47
4.4.70.0000.0277.47
4.4.60.0000.0237.47
4.4.50.0070.0277.47
4.4.40.0100.0407.47
4.4.30.0030.0307.47
4.4.20.0100.0177.47
4.4.10.0030.0337.47
4.4.00.0030.0477.47
4.3.110.0030.0307.47
4.3.100.0030.0207.47
4.3.90.0070.0237.47
4.3.80.0000.0337.47
4.3.70.0000.0207.47
4.3.60.0030.0237.47
4.3.50.0000.0307.47
4.3.40.0130.0277.47
4.3.30.0030.0307.47
4.3.20.0030.0237.47
4.3.10.0000.0337.47
4.3.00.0030.0207.00

preferences:
35.26 ms | 401 KiB | 5 Q