3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row = array(1, 2, 3, 4); echo " <h2>question</h2> <p>".chr(64 + $row[0])."</p> <h2>answer</h2> <p>".chr(64 + $row[1])."</p>";

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.10.0000.00917.87
8.3.140.0030.00618.98
8.3.130.0050.00318.41
8.3.120.0090.00620.65
8.3.110.0050.00316.60
8.3.100.0060.00318.29
8.3.90.0120.00326.77
8.3.80.0030.00616.50
8.3.70.0110.00416.58
8.3.60.0100.01016.37
8.3.50.0090.01022.12
8.3.40.0070.01418.67
8.3.30.0120.00619.13
8.3.20.0050.00320.26
8.3.10.0050.00223.71
8.3.00.0000.00819.23
8.2.260.0060.01218.62
8.2.250.0160.00016.30
8.2.240.0110.00717.07
8.2.230.0040.00420.94
8.2.220.0120.00324.06
8.2.210.0140.00426.77
8.2.200.0040.00418.41
8.2.190.0090.00616.58
8.2.180.0150.00325.92
8.2.170.0120.00318.79
8.2.160.0070.00722.96
8.2.150.0000.00724.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0040.00421.95
8.2.110.0040.00419.31
8.2.100.0080.00317.91
8.2.90.0000.00820.48
8.2.80.0040.00418.05
8.2.70.0000.00917.93
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0000.00819.94
8.2.30.0000.00818.00
8.2.20.0000.00717.65
8.2.10.0050.00218.06
8.2.00.0000.00917.73
8.1.310.0040.00416.80
8.1.300.0030.00617.94
8.1.290.0030.00630.84
8.1.280.0100.00725.92
8.1.270.0100.00023.99
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0060.00322.59
8.1.230.0080.00419.15
8.1.220.0090.00017.77
8.1.210.0030.00619.08
8.1.200.0000.01017.13
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0000.00818.74
8.1.160.0040.00418.88
8.1.150.0070.00018.67
8.1.140.0040.00417.44
8.1.130.0000.00717.32
8.1.120.0060.00317.47
8.1.110.0070.00017.48
8.1.100.0000.00717.35
8.1.90.0040.00417.44
8.1.80.0030.00317.44
8.1.70.0030.00517.43
8.1.60.0030.00617.57
8.1.50.0050.00317.39
8.1.40.0000.00817.53
8.1.30.0000.00917.54
8.1.20.0070.00017.56
8.1.10.0170.00617.51
8.1.00.0000.00717.52
8.0.300.0000.00819.98
8.0.290.0090.00016.75
8.0.280.0030.00318.36
8.0.270.0000.00716.86
8.0.260.0030.00316.78
8.0.250.0000.00616.85
8.0.240.0070.00016.91
8.0.230.0000.00816.86
8.0.220.0070.00016.80
8.0.210.0000.00716.75
8.0.200.0000.00616.94
8.0.190.0000.00816.93
8.0.180.0040.00416.93
8.0.170.0040.00416.93
8.0.160.0040.00416.95
8.0.150.0000.00716.84
8.0.140.0000.00816.86
8.0.130.0060.00013.38
8.0.120.0030.00516.73
8.0.110.0000.00816.86
8.0.100.0000.00816.90
8.0.90.0040.00416.84
8.0.80.0090.01216.96
8.0.70.0040.00416.78
8.0.60.0000.00716.71
8.0.50.0040.00416.75
8.0.30.0100.00816.91
8.0.20.0090.01117.12
8.0.10.0150.00817.01
8.0.00.0110.01016.97
7.4.330.0050.00015.14
7.4.320.0000.00616.55
7.4.300.0030.00316.51
7.4.290.0070.00016.42
7.4.280.0040.00416.59
7.4.270.0040.00416.58
7.4.260.0070.00016.59
7.4.250.0060.00316.51
7.4.240.0040.00316.50
7.4.230.0020.00516.26
7.4.220.0040.01116.52
7.4.210.0090.00816.53
7.4.200.0030.00316.43
7.4.190.0050.00216.63
7.4.160.0100.00816.54
7.4.150.0090.00916.71
7.4.140.0150.00616.87
7.4.130.0140.00716.59
7.4.120.0130.00916.58
7.4.110.0150.00716.52
7.4.100.0120.00916.55
7.4.90.0130.00916.48
7.4.80.0140.00816.82
7.4.70.0110.01116.52
7.4.60.0120.00916.52
7.4.50.0120.00916.48
7.4.40.0130.00816.41
7.4.30.0100.01116.52
7.4.20.0150.00716.47
7.4.10.0120.01016.22
7.4.00.0090.00916.17
7.3.330.0020.00213.10
7.3.320.0040.00413.12
7.3.310.0000.00616.27
7.3.300.0000.00716.16
7.3.290.0050.00816.26
7.3.280.0080.00916.22
7.3.270.0090.00916.60
7.3.260.0120.00816.40
7.3.250.0100.01016.38
7.3.240.0130.00816.40
7.3.230.0140.00816.37
7.3.220.0120.01116.39
7.3.210.0150.00516.37
7.3.200.0110.00816.42
7.3.190.0170.00916.33
7.3.180.0130.00916.42
7.3.170.0120.00916.33
7.3.160.0130.00916.41
7.3.150.0140.00916.43
7.3.140.0140.00916.38
7.3.130.0120.00816.15
7.3.120.0120.00716.01
7.3.110.0110.01015.87
7.3.100.0120.00815.86
7.3.90.0120.00915.92
7.3.80.0100.00915.86
7.3.70.0120.00715.87
7.3.60.0110.00915.83
7.3.50.0130.00815.71
7.3.40.0120.00815.69
7.3.30.0120.00715.69
7.3.20.0380.00815.88
7.3.10.0360.00715.80
7.3.00.0380.00715.66
7.2.340.0190.01016.62
7.2.330.0150.01316.63
7.2.320.0180.00816.52
7.2.310.0160.01116.62
7.2.300.0160.00916.56
7.2.290.0180.00816.55
7.2.280.0170.00816.52
7.2.270.0170.00916.54
7.2.260.0130.01016.40
7.2.250.0140.01016.29
7.2.240.0150.00916.15
7.2.230.0130.00916.13
7.2.220.0140.00916.14
7.2.210.0140.00816.07
7.2.200.0130.00916.12
7.2.190.0150.00916.06
7.2.180.0120.00915.93
7.2.170.0120.00815.94
7.2.160.0120.00915.92
7.2.150.0350.00916.21
7.2.140.0380.00916.14
7.2.130.0450.00715.93
7.2.120.0360.01015.87
7.2.110.0330.00915.77
7.2.100.0570.00815.78
7.2.90.0400.00915.78
7.2.80.0440.00815.82
7.2.70.0370.00915.92
7.2.60.0440.00815.85
7.2.50.0450.00815.88
7.2.40.0400.01016.04
7.2.30.0430.00816.02
7.2.20.0410.00815.99
7.2.10.0410.00916.02
7.2.00.0390.01015.98
7.1.330.0170.00915.47
7.1.320.0160.00815.36
7.1.310.0140.00915.41
7.1.300.0150.01015.36
7.1.290.0220.00815.36
7.1.280.0140.00815.24
7.1.270.0220.00815.17
7.1.260.0150.00715.17
7.1.250.0400.00714.79
7.1.240.0240.01014.71
7.1.230.0590.00914.69
7.1.220.0580.00914.67
7.1.210.0550.00914.63
7.1.200.0450.00814.69
7.1.190.0400.00914.67
7.1.180.0480.00914.67
7.1.170.0480.00814.67
7.1.160.0430.00814.83
7.1.150.0430.00814.80
7.1.140.0390.00814.86
7.1.130.0450.00714.85
7.1.120.0390.00814.83
7.1.110.0430.00914.87
7.1.100.0400.00914.84
7.1.90.0430.00914.81
7.1.80.0430.00814.81
7.1.70.0390.00914.70
7.1.60.0360.01016.95
7.1.50.0410.00816.94
7.1.40.0340.00816.87
7.1.30.0420.01016.88
7.1.20.0340.00916.89
7.1.10.0320.00714.61
7.1.00.0310.00814.60
7.0.330.0440.00714.35
7.0.320.0420.00814.31
7.0.310.0510.00814.26
7.0.300.0470.00714.28
7.0.290.0450.00714.43
7.0.280.0390.00814.27
7.0.270.0420.00714.45
7.0.260.0380.00914.51
7.0.250.0440.00814.51
7.0.240.0410.00814.54
7.0.230.0440.00714.52
7.0.220.0420.00814.47
7.0.210.0410.00714.37
7.0.200.0370.00814.35
7.0.190.0340.00914.37
7.0.180.0310.00814.32
7.0.170.0340.00814.35
7.0.160.0340.00914.35
7.0.150.0340.00814.30
7.0.140.0340.00914.33
7.0.130.0330.00814.29
7.0.120.0380.00814.35
7.0.110.0300.00814.36
7.0.100.0290.00914.26
7.0.90.0290.00814.31
7.0.80.0310.00714.30
7.0.70.0320.00814.31
7.0.60.0370.00814.27
7.0.50.0320.00814.29
7.0.40.0350.00814.34
7.0.30.0320.00814.29
7.0.20.0300.00714.34
7.0.10.0330.00814.38
7.0.00.0290.00714.35
5.6.400.0130.01115.28
5.6.390.0130.01015.32
5.6.380.0140.00814.97
5.6.370.0130.01014.95
5.6.360.0140.00914.97
5.6.350.0140.00914.98
5.6.340.0140.01014.96
5.6.330.0140.01014.93
5.6.320.0140.01014.98
5.6.310.0130.01014.94
5.6.300.0140.01315.31
5.6.290.0150.01315.33
5.6.280.0130.01415.37
5.6.270.0140.01215.39
5.6.260.0130.01415.36
5.6.250.0130.01415.39
5.6.240.0130.01415.33
5.6.230.0130.01415.35
5.6.220.0140.01215.35
5.6.210.0140.01215.38
5.6.200.0130.01315.38
5.6.190.0130.01415.39
5.6.180.0130.01415.34
5.6.170.0130.01415.37
5.6.160.0130.01315.36
5.6.150.0130.01315.35
5.6.140.0150.01215.38
5.6.130.0140.01315.38
5.6.120.0120.01415.33
5.6.110.0130.01415.35
5.6.100.0120.01515.34
5.6.90.0120.01415.32
5.6.80.0130.01215.19
5.6.70.0120.01415.31
5.6.60.0130.01315.30
5.6.50.0150.01215.23
5.6.40.0140.01215.20
5.6.30.0120.01315.22
5.6.20.0140.01115.24
5.6.10.0120.01315.25
5.6.00.0140.01115.24
5.5.380.0140.01214.08
5.5.370.0130.01314.13
5.5.360.0120.01314.08
5.5.350.0120.01214.10
5.5.340.0120.01214.12
5.5.330.0150.01114.10
5.5.320.0140.01214.11
5.5.310.0130.01214.13
5.5.300.0130.01214.13
5.5.290.0130.01214.15
5.5.280.0120.01214.11
5.5.270.0130.01314.10
5.5.260.0120.01314.08
5.5.250.0120.01314.06
5.5.240.0120.01214.06
5.5.230.0120.01214.05
5.5.220.0120.01314.05
5.5.210.0130.01214.01
5.5.200.0120.01213.98
5.5.190.0120.01214.00
5.5.180.0120.01214.00
5.5.170.0130.00914.22
5.5.160.0130.01114.03
5.5.150.0120.01214.03
5.5.140.0120.01213.98
5.5.130.0120.01214.00
5.5.120.0120.01113.97
5.5.110.0110.01314.03
5.5.100.0120.01214.05
5.5.90.0120.01314.06
5.5.80.0110.01413.98
5.5.70.0140.01114.03
5.5.60.0130.01213.96
5.5.50.0110.01313.99
5.5.40.0120.01214.00
5.5.30.0120.01113.96
5.5.20.0120.01314.01
5.5.10.0120.01213.97
5.5.00.0120.01213.96
5.4.450.0120.01012.52
5.4.440.0100.01012.52
5.4.430.0120.00912.49
5.4.420.0110.01112.51
5.4.410.0110.01012.53
5.4.400.0120.01012.43
5.4.390.0100.01012.48
5.4.380.0110.01012.43
5.4.370.0120.00912.44
5.4.360.0110.01012.44
5.4.350.0130.00812.42
5.4.340.0130.01012.44
5.4.330.0110.00611.93
5.4.320.0110.00912.41
5.4.310.0120.00912.43
5.4.300.0110.01112.43
5.4.290.0120.00912.41
5.4.280.0110.00912.40
5.4.270.0110.00912.46
5.4.260.0110.01012.45
5.4.250.0110.01012.44
5.4.240.0110.01112.43
5.4.230.0110.01012.43
5.4.220.0110.01012.45
5.4.210.0110.01012.45
5.4.200.0110.01012.44
5.4.190.0110.01012.41
5.4.180.0110.01012.42
5.4.170.0110.01012.41
5.4.160.0120.00912.40
5.4.150.0110.01112.40
5.4.140.0120.00912.25
5.4.130.0110.01012.29
5.4.120.0110.01012.27
5.4.110.0110.01012.31
5.4.100.0110.01012.30
5.4.90.0100.01012.25
5.4.80.0100.01012.30
5.4.70.0110.01012.27
5.4.60.0100.00912.27
5.4.50.0110.00912.24
5.4.40.0110.01012.29
5.4.30.0110.01012.27
5.4.20.0110.00912.28
5.4.10.0100.01012.27
5.4.00.0110.00912.22
5.3.290.0110.01112.10
5.3.280.0110.01012.04
5.3.270.0110.01112.06
5.3.260.0130.01012.06
5.3.250.0120.00912.06
5.3.240.0100.01011.98
5.3.230.0110.01112.01
5.3.220.0110.00912.04
5.3.210.0100.01112.02
5.3.200.0100.01012.04
5.3.190.0110.01012.08
5.3.180.0110.01012.13
5.3.170.0110.00912.16
5.3.160.0100.01012.14
5.3.150.0110.01112.15
5.3.140.0110.01012.09
5.3.130.0110.01012.07
5.3.120.0110.01012.07
5.3.110.0100.01112.06
5.3.100.0100.01012.03
5.3.90.0100.01012.03
5.3.80.0100.01011.94
5.3.70.0100.01011.96
5.3.60.0100.01012.04
5.3.50.0100.01112.01
5.3.40.0120.01011.98
5.3.30.0100.01012.05
5.3.20.0100.01011.96
5.3.10.0100.01011.85
5.3.00.0100.01011.88

preferences:
30.86 ms | 403 KiB | 5 Q