3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ''; $a[3] = 4; // PHP 7.0 and older : var_dump($a); // PHP 7.1 and more recent ?>

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.130.0040.00418.29
8.3.120.0060.00320.98
8.3.110.0060.00320.94
8.3.100.0030.00624.06
8.3.90.0030.00626.77
8.3.80.0000.01116.38
8.3.70.0040.01116.58
8.3.60.0130.00716.75
8.3.50.0110.00917.17
8.3.40.0120.00618.67
8.3.30.0100.01018.75
8.3.20.0050.00321.78
8.3.10.0000.00820.39
8.3.00.0000.00817.50
8.2.250.0030.00518.14
8.2.240.0080.00017.25
8.2.230.0040.00422.58
8.2.220.0090.00037.54
8.2.210.0080.00826.77
8.2.200.0040.00416.38
8.2.190.0120.00616.58
8.2.180.0140.00725.92
8.2.170.0140.00018.69
8.2.160.0080.00822.96
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00019.70
8.2.110.0050.00520.52
8.2.100.0070.00417.84
8.2.90.0040.00419.57
8.2.80.0080.00019.20
8.2.70.0060.00317.80
8.2.60.0030.00518.13
8.2.50.0030.00519.22
8.2.40.0040.00418.22
8.2.30.0060.00317.93
8.2.20.0000.00817.97
8.2.10.0050.00319.23
8.2.00.0060.00318.11
8.1.300.0060.00318.50
8.1.290.0060.00330.84
8.1.280.0000.01525.92
8.1.270.0050.00223.99
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00323.96
8.1.230.0070.00420.71
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0040.00417.47
8.1.190.0080.00017.25
8.1.180.0080.00018.10
8.1.170.0040.00418.50
8.1.160.0070.00018.93
8.1.150.0000.00718.84
8.1.140.0000.00718.77
8.1.130.0030.00317.38
8.1.120.0000.00717.46
8.1.110.0030.00517.42
8.1.100.0040.00417.45
8.1.90.0020.00517.43
8.1.80.0000.00817.45
8.1.70.0030.00317.48
8.1.60.0000.00717.59
8.1.50.0000.00817.56
8.1.40.0030.00717.53
8.1.30.0030.00617.69
8.1.20.0050.00317.53
8.1.10.0040.00417.41
8.1.00.0060.00317.47
8.0.300.0000.00720.11
8.0.290.0000.00816.75
8.0.280.0070.00018.42
8.0.270.0030.00317.16
8.0.260.0000.00717.13
8.0.250.0030.00316.96
8.0.240.0040.00416.82
8.0.230.0030.00316.88
8.0.220.0000.00716.72
8.0.210.0070.00016.89
8.0.200.0040.00416.80
8.0.190.0080.00016.81
8.0.180.0080.00016.80
8.0.170.0030.00616.93
8.0.160.0000.00816.90
8.0.150.0030.00316.79
8.0.140.0000.00716.69
8.0.130.0000.00613.35
8.0.120.0030.00516.86
8.0.110.0050.00316.99
8.0.100.0030.00316.88
8.0.90.0030.00316.88
8.0.80.0090.00616.94
8.0.70.0070.00016.79
8.0.60.0000.00716.90
8.0.50.0040.00416.68
8.0.30.0130.00616.94
8.0.20.0070.01017.40
8.0.10.0000.00716.99
8.0.00.0100.01116.74
7.4.330.0000.00515.55
7.4.320.0000.00616.59
7.4.300.0040.00416.39
7.4.290.0030.00316.60
7.4.280.0050.00316.57
7.4.270.0030.00316.57
7.4.260.0080.00316.59
7.4.250.0000.00816.56
7.4.240.0040.00416.60
7.4.230.0000.00716.60
7.4.220.0040.00416.66
7.4.210.0060.01116.51
7.4.200.0030.00316.54
7.4.160.0100.00816.48
7.4.140.0070.01317.86
7.4.130.0190.00316.38
7.4.120.0110.00716.35
7.4.110.0080.01516.58
7.4.100.0090.00916.43
7.4.90.0080.00816.44
7.4.80.0070.01019.39
7.4.70.0160.00616.40
7.4.60.0070.00716.44
7.4.50.0030.00916.23
7.4.40.0100.00616.52
7.4.00.0060.00915.00
7.3.330.0050.00013.01
7.3.320.0070.00013.11
7.3.310.0080.00016.29
7.3.300.0030.00316.11
7.3.290.0110.00416.29
7.3.280.0070.01016.19
7.3.260.0090.01116.37
7.3.240.0090.01016.33
7.3.230.0090.00916.65
7.3.210.0090.01216.54
7.3.200.0060.00916.47
7.3.190.0090.00716.59
7.3.180.0000.01916.21
7.3.170.0090.01316.55
7.3.160.0060.00916.41
7.3.10.0460.00514.85
7.3.00.0430.00314.77
7.2.330.0030.01416.31
7.2.320.0090.00916.58
7.2.310.0130.00316.52
7.2.300.0070.01116.37
7.2.290.0100.00616.48
7.2.130.0530.00314.86
7.2.120.0610.00314.89
7.2.110.0470.00914.77
7.2.100.0580.00514.83
7.2.90.0450.00514.96
7.2.80.0490.00514.72
7.2.70.0820.01114.70
7.2.60.0930.00814.76
7.2.50.0630.00714.75
7.2.40.0640.00914.77
7.2.30.0570.01214.96
7.2.20.0490.00714.86
7.2.10.0570.00514.87
7.2.00.0520.00514.92
7.1.250.0530.00413.83
7.1.240.0620.01013.68
7.1.230.0550.00013.63
7.1.220.0440.01013.71
7.1.210.0850.00313.43
7.1.200.0430.00713.82
7.1.190.0590.01013.86
7.1.180.0540.00313.36
7.1.170.0650.00314.00
7.1.160.0700.01013.93
7.1.150.0700.01214.01
7.1.140.0690.00813.68
7.1.130.0530.00713.82
7.1.120.0790.00013.65
7.1.110.0530.00313.77
7.1.100.0490.00713.95
7.1.90.0560.01213.82
7.1.80.0360.00713.86
7.1.70.0590.01013.77
7.1.60.0580.00613.62
7.1.50.0500.00313.90
7.1.40.0510.00613.77
7.1.30.0490.00313.58
7.1.20.0480.01213.93
7.1.10.0580.00713.78
7.1.00.0670.00314.06
7.0.330.0740.01513.69
7.0.320.0440.00013.24
7.0.310.0700.00613.18
7.0.300.0620.01013.20
7.0.290.0770.00313.50
7.0.280.0550.01313.17
7.0.270.0440.00613.50
7.0.260.0510.01113.36
7.0.250.0560.00713.66
7.0.240.0610.00813.64
7.0.230.0460.00913.64
7.0.220.0430.01113.54
7.0.210.0760.00613.66
7.0.200.1950.00013.46
7.0.190.0640.00413.74
7.0.180.0580.00713.63
7.0.170.0570.00313.66
7.0.160.0480.01213.59
7.0.150.0670.01013.55
7.0.140.0670.00413.67
7.0.130.0470.00913.48
7.0.120.0490.01013.47
7.0.110.0600.00713.63
7.0.100.0550.00013.41
7.0.90.0450.01413.51
7.0.80.0480.00013.56
7.0.70.0400.01013.51
7.0.60.0490.00713.48
7.0.50.0320.00413.76
7.0.40.0330.01613.62
7.0.30.0300.01013.27
7.0.20.0310.00313.58
7.0.10.0410.01013.54
7.0.00.0430.00413.78
5.6.380.0150.00614.21
5.6.370.0030.01613.76
5.6.360.0070.02114.14
5.6.350.0100.01614.07
5.6.340.0110.00613.94
5.6.330.0000.01114.27
5.6.320.0080.01114.07
5.6.310.0190.00814.29
5.6.300.0120.00513.92
5.6.290.0190.00314.50
5.6.280.0100.00814.15
5.6.270.0190.00914.03
5.6.260.0170.00714.11
5.6.250.0110.01414.23
5.6.240.0060.01714.39
5.6.230.0100.00714.34
5.6.220.0110.01913.98
5.6.210.0160.00914.02
5.6.200.0150.00814.06
5.6.190.0220.00414.45
5.6.180.0080.01914.26
5.6.170.0200.00314.34
5.6.160.0150.01714.26
5.6.150.0210.00614.29
5.6.140.0180.01114.29
5.6.130.0090.01214.15
5.6.120.0150.01114.07
5.6.110.0150.01814.48
5.6.100.0120.00614.23
5.6.90.0100.01014.34
5.6.80.0140.00714.16
5.6.70.0150.00414.32
5.6.60.0090.00614.10
5.6.50.0130.01014.46
5.6.40.0270.00314.09
5.6.30.0170.00814.11
5.6.20.0180.00914.14
5.6.10.0090.00914.26
5.6.00.0170.01414.25
5.5.380.0200.00410.90
5.5.370.0160.00611.22
5.5.360.0190.00010.94
5.5.350.0130.01110.88
5.5.340.0100.00310.88
5.5.330.0140.00510.89
5.5.320.0160.00010.73
5.5.310.0120.00611.22
5.5.300.0060.01411.15
5.5.290.0130.00311.20
5.5.280.0180.00411.16
5.5.270.0070.01410.90
5.5.260.0070.01811.16
5.5.250.0130.00010.94
5.5.240.0140.00510.91
5.5.230.0100.00710.62
5.5.220.0110.00410.87
5.5.210.0000.01211.02
5.5.200.0100.00311.02
5.5.190.0100.00711.04
5.5.180.0090.01110.99
5.5.170.0060.00610.99
5.5.160.0080.01110.91
5.5.150.0060.00611.16
5.5.140.0090.00511.02
5.5.130.0110.00410.87
5.5.120.0120.00311.04
5.5.110.0030.01010.81
5.5.100.0140.00610.85
5.5.90.0160.00510.85
5.5.80.0100.00711.20
5.5.70.0130.01010.96
5.5.60.0120.00410.96
5.5.50.0170.00011.04
5.5.40.0120.00610.77
5.5.30.0150.00910.97
5.5.20.0060.00610.76
5.5.10.0110.00510.68
5.5.00.0170.00710.94
5.4.450.0090.00511.17
5.4.440.0230.00010.96
5.4.430.0080.00610.99
5.4.420.0090.00911.08
5.4.410.0080.00811.23
5.4.400.0170.00311.02
5.4.390.0100.00511.03
5.4.380.0120.00410.96
5.4.370.0090.00610.90
5.4.360.0080.00410.83
5.4.350.0130.00311.02
5.4.340.0110.00311.07
5.4.330.0080.00411.04
5.4.320.0190.00310.77
5.4.310.0060.00611.04
5.4.300.0170.00310.98
5.4.290.0140.00710.86
5.4.280.0170.00011.08
5.4.270.0070.00710.96
5.4.260.0040.00910.82
5.4.250.0160.00410.89
5.4.240.0120.00310.88
5.4.230.0120.00210.77
5.4.220.0200.00010.89
5.4.210.0130.00610.83
5.4.200.0100.01310.82
5.4.190.0070.00711.06
5.4.180.0090.00910.64
5.4.170.0000.01010.91
5.4.160.0140.00410.85
5.4.150.0070.00710.86
5.4.140.0070.00410.92
5.4.130.0070.01410.84
5.4.120.0030.01511.00
5.4.110.0100.00710.94
5.4.100.0100.01010.75
5.4.90.0170.00310.87
5.4.80.0230.00011.12
5.4.70.0120.00010.71
5.4.60.0090.00510.90
5.4.50.0150.00411.07
5.4.40.0130.00910.90
5.4.30.0040.02010.69
5.4.20.0070.00510.92
5.4.10.0060.01210.67
5.4.00.0130.00010.78
5.3.290.0100.00010.40
5.3.280.0080.00810.25
5.3.270.0050.00510.46
5.3.260.0100.01010.36
5.3.250.0090.00310.36
5.3.240.0070.01110.25
5.3.230.0130.00010.30
5.3.220.0120.00410.41
5.3.210.0110.00710.24
5.3.200.0100.00710.30
5.3.190.0090.00310.42
5.3.180.0120.00310.52
5.3.170.0140.00410.43
5.3.160.0030.00510.43
5.3.150.0130.00310.48
5.3.140.0090.00910.46
5.3.130.0130.00510.56
5.3.120.0100.01010.48
5.3.110.0080.00010.46
5.3.100.0070.01110.43
5.3.90.0130.00310.34
5.3.80.0140.00510.19
5.3.70.0170.00310.23
5.3.60.0120.00610.19
5.3.50.0060.00610.19
5.3.40.0090.00610.02
5.3.30.0120.00410.24
5.3.20.0080.00010.31
5.3.10.0120.0009.90
5.3.00.0120.0039.92
5.2.170.0070.0099.33
5.2.160.0150.0009.43
5.2.150.0030.0099.48
5.2.140.0090.0049.43
5.2.130.0070.0009.24
5.2.120.0120.0009.13
5.2.110.0080.0039.39
5.2.100.0040.0079.38
5.2.90.0090.0059.07
5.2.80.0110.0079.27
5.2.70.0060.0039.23
5.2.60.0150.0049.22
5.2.50.0070.0079.07
5.2.40.0080.0049.25
5.2.30.0060.0039.32
5.2.20.0070.0079.22
5.2.10.0110.0079.11
5.2.00.0150.0009.20
5.1.60.0030.0108.99
5.1.50.0070.0008.99
5.1.40.0080.0008.99
5.1.30.0000.0078.99
5.1.20.0070.0078.99
5.1.10.0080.0008.99
5.1.00.0040.0098.99
5.0.50.0060.0008.99
5.0.40.0080.0038.99
5.0.30.0000.0108.99
5.0.20.0090.0068.99
5.0.10.0090.0008.99
5.0.00.0040.0078.99
4.4.90.0080.0028.99
4.4.80.0030.0038.99
4.4.70.0050.0058.99
4.4.60.0060.0068.99
4.4.50.0030.0078.99
4.4.40.0000.0058.99
4.4.30.0030.0038.99
4.4.20.0030.0078.99
4.4.10.0030.0038.99
4.4.00.0000.0058.99
4.3.110.0030.0068.99
4.3.100.0080.0048.99
4.3.90.0000.0098.99
4.3.80.0030.0058.99
4.3.70.0030.0078.99
4.3.60.0030.0068.99
4.3.50.0030.0038.99
4.3.40.0050.0058.99
4.3.30.0000.0068.99
4.3.20.0040.0008.99
4.3.10.0030.0038.99
4.3.00.0000.0108.99

preferences:
30.21 ms | 403 KiB | 5 Q