3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month_number = "08"; $month_year = "2016"; echo "<div class=\"item"; // the ternary aspect: $month_result = ($month_number === "09"); $year_result = ($month_year === "2017"); echo ($month_result && $year_result)? "active":""; echo "\"></div>";

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.0150.01219.79
8.4.150.0030.00014.05
8.4.140.0130.00817.60
8.4.130.0130.00819.27
8.4.120.0090.01020.81
8.4.110.0110.00922.41
8.4.100.0050.00517.60
8.4.90.0140.00618.82
8.4.80.0070.00222.22
8.4.70.0050.00318.02
8.4.60.0060.00518.72
8.4.50.0100.01020.37
8.4.40.0130.00619.41
8.4.30.0090.00919.53
8.4.20.0120.00917.42
8.4.10.0000.00819.70
8.3.280.0160.00618.31
8.3.270.0110.00816.43
8.3.260.0030.00516.44
8.3.250.0130.00718.90
8.3.240.0080.00916.71
8.3.230.0130.00516.54
8.3.220.0110.00819.11
8.3.210.0080.01016.40
8.3.200.0040.00716.84
8.3.190.0130.00516.94
8.3.180.0080.01016.57
8.3.170.0130.00418.90
8.3.160.0120.00618.93
8.3.150.0060.01118.64
8.3.140.0100.00716.45
8.3.130.0040.00416.69
8.3.120.0030.00620.59
8.3.110.0080.00018.54
8.3.100.0060.00316.39
8.3.90.0040.00426.77
8.3.80.0000.01018.55
8.3.70.0060.00916.63
8.3.60.0070.00716.38
8.3.50.0100.00817.37
8.3.40.0040.01118.49
8.3.30.0120.00318.67
8.3.20.0040.00420.38
8.3.10.0080.00020.90
8.3.00.0050.00319.26
8.2.290.0090.01120.49
8.2.280.0080.01018.32
8.2.270.0060.00317.00
8.2.260.0090.00018.30
8.2.250.0080.00017.11
8.2.240.0050.00517.16
8.2.230.0100.00720.94
8.2.220.0080.00324.06
8.2.210.0000.00826.77
8.2.200.0000.00916.50
8.2.190.0120.00616.58
8.2.180.0110.01125.92
8.2.170.0110.00418.84
8.2.160.0100.00322.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00719.31
8.2.120.0070.00026.35
8.2.110.0100.00022.25
8.2.100.0110.00018.16
8.2.90.0000.00817.75
8.2.80.0080.00018.61
8.2.70.0000.00917.93
8.2.60.0000.00818.04
8.2.50.0050.00318.22
8.2.40.0030.00520.33
8.2.30.0040.00419.31
8.2.20.0040.00418.11
8.2.10.0070.00018.11
8.2.00.0000.00717.98
8.1.330.0080.00121.73
8.1.320.0080.01116.24
8.1.310.0080.00016.48
8.1.300.0080.00017.70
8.1.290.0080.00430.84
8.1.280.0000.01425.92
8.1.270.0050.00322.02
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00619.20
8.1.230.0030.00722.08
8.1.220.0070.00017.78
8.1.210.0000.00818.77
8.1.200.0040.00417.36
8.1.190.0050.00317.22
8.1.180.0000.00918.10
8.1.170.0040.00418.67
8.1.160.0000.00718.89
8.1.150.0040.00420.22
8.1.140.0000.00719.56
8.1.130.0000.00718.92
8.1.120.0000.00817.52
8.1.110.0080.00017.47
8.1.100.0080.00017.34
8.1.90.0050.00317.33
8.1.80.0080.00017.44
8.1.70.0000.00717.51
8.1.60.0040.00417.51
8.1.50.0050.00317.55
8.1.40.0000.00817.50
8.1.30.0030.00517.74
8.1.20.0030.00517.64
8.1.10.0000.00917.41
8.1.00.0000.00817.46
8.0.300.0040.00419.72
8.0.290.0040.00416.75
8.0.280.0030.00318.40
8.0.270.0030.00317.16
8.0.260.0030.00318.88
8.0.250.0030.00316.87
8.0.240.0050.00316.79
8.0.230.0000.00716.98
8.0.220.0050.00216.87
8.0.210.0030.00316.86
8.0.200.0080.00016.82
8.0.190.0040.00416.84
8.0.180.0000.00716.80
8.0.170.0040.00416.90
8.0.160.0030.00516.85
8.0.150.0050.00216.76
8.0.140.0080.00016.89
8.0.130.0000.00513.34
8.0.120.0000.00816.90
8.0.110.0050.00316.77
8.0.100.0000.00716.79
8.0.90.0050.00216.92
8.0.80.0110.00416.93
8.0.70.0070.00016.88
8.0.60.0000.00716.88
8.0.50.0070.00016.68
8.0.30.0140.00917.06
8.0.20.0120.01017.24
8.0.10.0180.00916.95
8.0.00.0140.01116.85
7.4.330.0000.00615.55
7.4.320.0000.00616.49
7.4.300.0060.00016.59
7.4.290.0070.00016.45
7.4.280.0040.00416.52
7.4.270.0070.00016.41
7.4.260.0030.00316.48
7.4.250.0070.00016.46
7.4.240.0070.00016.44
7.4.230.0020.00516.57
7.4.220.0030.01516.61
7.4.210.0050.00916.57
7.4.200.0070.00016.65
7.4.160.0110.01116.43
7.4.150.0140.01016.95
7.4.140.0120.00817.51
7.4.130.0120.01116.38
7.4.120.0120.00616.46
7.4.110.0100.00916.40
7.4.100.0080.00816.53
7.4.90.0110.00616.45
7.4.80.0150.00617.90
7.4.70.0080.01116.49
7.4.60.0080.01016.45
7.4.50.0140.00216.38
7.4.40.0110.00516.48
7.4.30.0100.00616.46
7.4.20.0080.00816.54
7.4.10.0150.00016.40
7.4.00.0080.00615.12
7.3.330.0050.00013.09
7.3.320.0060.00012.95
7.3.310.0070.00016.10
7.3.300.0040.00416.16
7.3.290.0070.00016.20
7.3.280.0070.01216.19
7.3.270.0100.01416.81
7.3.260.0070.01216.31
7.3.250.0110.00716.28
7.3.240.0060.01116.26
7.3.230.0130.00616.16
7.3.220.0090.00616.23
7.3.210.0080.00816.29
7.3.200.0060.01416.23
7.3.190.0100.00816.14
7.3.180.0060.01416.15
7.3.170.0050.01216.23
7.3.160.0030.01116.19
7.3.150.0130.00316.09
7.3.140.0030.01016.11
7.3.130.0100.00316.07
7.3.120.0080.00815.11
7.3.110.0110.00715.10
7.3.100.0110.00514.97
7.3.90.0060.01015.16
7.3.80.0090.00714.99
7.3.70.0070.00815.08
7.3.60.0070.00515.20
7.3.50.0070.00815.10
7.3.40.0050.00715.18
7.3.30.0060.00615.13
7.3.20.0080.00816.43
7.3.10.0060.00816.35
7.3.00.0100.00516.56
7.2.340.0280.00416.29
7.2.330.0150.00816.48
7.2.320.0100.01216.22
7.2.310.0230.01016.42
7.2.300.0140.00816.49
7.2.290.0120.01016.36
7.2.280.0130.01216.27
7.2.270.0190.00816.21
7.2.260.0180.00916.20
7.2.250.0130.00915.30
7.2.240.0110.01115.23
7.2.230.0110.00915.25
7.2.220.0110.00915.03
7.2.210.0100.01015.23
7.2.200.0090.00915.32
7.2.190.0090.00915.19
7.2.180.0090.00815.26
7.2.170.0100.00715.18
7.2.160.0130.00815.40
7.2.150.0090.01016.56
7.2.140.0200.00416.80
7.2.130.0120.00716.68
7.2.120.0100.00816.72
7.2.110.0100.00916.63
7.2.100.0110.00916.79
7.2.90.0080.01316.67
7.2.80.0100.01316.69
7.2.70.0120.00916.71
7.2.60.0130.00716.73
7.2.50.0100.00816.54
7.2.40.0650.01117.00
7.2.30.0740.00817.04
7.2.20.0100.01417.06
7.2.10.0190.00716.85
7.2.00.0110.01017.03
7.1.330.0110.00615.53
7.1.320.0080.00915.60
7.1.310.0110.00615.55
7.1.300.0100.00715.49
7.1.290.0140.00815.59
7.1.280.0050.00915.72
7.1.270.0090.00815.62
7.1.260.0090.00815.58
7.1.250.0270.01115.55
7.1.240.0110.00815.51
7.1.230.0100.01015.60
7.1.220.0120.00915.55
7.1.210.0060.01015.63
7.1.200.0080.00715.65
7.1.190.0110.00915.65
7.1.180.0110.01115.59
7.1.170.0240.00615.53
7.1.160.0100.01015.92
7.1.150.0090.01015.78
7.1.140.0260.00915.85
7.1.130.0090.00915.78
7.1.120.0100.01015.90
7.1.110.0060.01415.56
7.1.100.0110.01015.61
7.1.90.0680.01316.16
7.1.80.0130.01016.08
7.1.70.0380.00815.69
7.1.60.0240.01122.97
7.1.50.0530.01122.76
7.1.40.0490.01022.68
7.1.30.0460.01222.66
7.1.20.0420.01022.69
7.1.10.0100.00915.49
7.1.00.0080.01015.51
7.0.330.0100.00915.14
7.0.320.0130.00415.21
7.0.310.0100.00915.21
7.0.300.0100.00715.28
7.0.290.0130.01115.56
7.0.280.0150.00315.12
7.0.270.0850.00915.44
7.0.260.0100.01115.43
7.0.250.0310.00715.50
7.0.240.0850.00815.39
7.0.230.0090.01215.86
7.0.220.0070.01115.94
7.0.210.0110.00815.37
7.0.200.0590.01015.46
7.0.190.0520.00815.38
7.0.180.0410.01015.21
7.0.170.0370.01015.23
7.0.160.0290.00915.21
7.0.150.0120.01015.31
7.0.140.0120.00915.27
7.0.130.0920.00915.39
7.0.120.0250.00915.41
7.0.110.0100.01115.26
7.0.100.0290.00815.25
7.0.90.0190.01115.19
7.0.80.0100.00815.26
7.0.70.0300.00515.23
7.0.60.0260.00815.23
7.0.50.0280.01115.29
7.0.40.0270.00814.51
7.0.30.0290.00714.51
7.0.20.0240.01014.51
7.0.10.0230.01114.36
7.0.00.0200.01014.55
5.6.400.0070.01314.85
5.6.390.0100.01114.93
5.6.380.0130.00514.56
5.6.370.0110.00814.88
5.6.360.0090.00714.81
5.6.350.0070.01114.73
5.6.340.0070.01014.96
5.6.330.0140.00514.92
5.6.320.0070.01114.65
5.6.310.0120.01014.96
5.6.300.0120.03017.15
5.6.290.0120.02917.17
5.6.280.0120.03017.24
5.6.270.0150.03317.18
5.6.260.0120.03417.20
5.6.250.0110.03017.25
5.6.240.0140.03017.26
5.6.230.0130.03717.18
5.6.220.0090.03517.18
5.6.210.0090.03017.17
5.6.200.0090.03517.24
5.6.190.0140.02817.22
5.6.180.0120.03017.21
5.6.170.0120.03017.33
5.6.160.0130.03117.26
5.6.150.0130.02917.22
5.6.140.0110.02817.12
5.6.130.0110.02717.19
5.6.120.0120.03617.20
5.6.110.0130.03217.11
5.6.100.0090.03517.22
5.6.90.0130.03217.20
5.6.80.0140.02916.91
5.6.70.0090.03216.89
5.6.60.0110.03116.83
5.6.50.0080.03416.86
5.6.40.0090.03216.96
5.6.30.0080.03516.87
5.6.20.0130.03516.86
5.6.10.0130.03316.87
5.6.00.0100.03216.83

preferences:
40.26 ms | 403 KiB | 5 Q