3v4l.org

run code in 300+ PHP versions simultaneously
<?php convertPhpErrorsToExceptions(); $array = ['hi' => 'dsa']; echo $array['unknown']; function convertPhpErrorsToExceptions() { static $isNotLoaded = true; if ($isNotLoaded) { set_error_handler('phpErrorToException'); $isNotLoaded = false; } } function phpErrorToException($severity, $message, $filename, $lineno) { if (error_reporting() & $severity) { throw new \ErrorException($message, 0, $severity, $filename, $lineno); } }

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.70.0140.00716.50
8.3.60.0190.00016.75
8.3.50.0120.00621.14
8.3.40.0070.00718.70
8.3.30.0040.01118.72
8.3.20.0070.00020.29
8.3.10.0080.00023.71
8.3.00.0090.00023.58
8.2.180.0090.00618.54
8.2.170.0090.00622.96
8.2.160.0100.00320.51
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0050.00221.02
8.2.120.0040.00426.35
8.2.110.0100.00020.95
8.2.100.0030.01217.79
8.2.90.0040.00419.39
8.2.80.0000.00917.97
8.2.70.0040.00417.50
8.2.60.0050.00317.93
8.2.50.0030.00618.09
8.2.40.0000.00922.14
8.2.30.0000.00719.54
8.2.20.0000.00817.87
8.2.10.0040.00418.17
8.2.00.0000.00818.16
8.1.280.0120.00325.92
8.1.270.0070.01122.05
8.1.260.0060.00328.09
8.1.250.0000.00728.09
8.1.240.0040.00422.51
8.1.230.0040.00821.04
8.1.220.0000.00817.79
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0070.00318.55
8.1.160.0050.00220.75
8.1.150.0000.00818.88
8.1.140.0050.00319.57
8.1.130.0040.00417.61
8.1.120.0030.00317.46
8.1.110.0040.00417.48
8.1.100.0000.00717.41
8.1.90.0000.00717.35
8.1.80.0050.00217.42
8.1.70.0070.00017.50
8.1.60.0060.00317.62
8.1.50.0050.00317.39
8.1.40.0050.00317.49
8.1.30.0030.00517.65
8.1.20.0000.00717.69
8.1.10.0000.00817.50
8.1.00.0050.00217.32
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.36
8.0.270.0080.00017.26
8.0.260.0040.00417.23
8.0.250.0070.00016.88
8.0.240.0080.00316.90
8.0.230.0000.00717.03
8.0.220.0030.00316.82
8.0.210.0000.00816.91
8.0.200.0000.00617.07
8.0.190.0070.00017.03
8.0.180.0040.00417.01
8.0.170.0000.00817.02
8.0.160.0040.00416.98
8.0.150.0080.00016.79
8.0.140.0080.00016.73
8.0.130.0050.00013.44
8.0.120.0000.00916.96
8.0.110.0040.00416.85
8.0.100.0000.00716.88
8.0.90.0040.00416.86
8.0.80.0060.00916.96
8.0.70.0070.00016.81
8.0.60.0030.00516.83
8.0.50.0030.00516.77
8.0.30.0080.00917.08
8.0.20.0110.00817.40
8.0.10.0050.00216.93
8.0.00.0100.00816.91
7.4.330.0060.00016.72
7.4.320.0070.00016.55
7.4.300.0070.00016.59
7.4.290.0030.00516.63
7.4.280.0000.00816.39
7.4.270.0040.00416.52
7.4.260.0040.00416.52
7.4.250.0080.00016.36
7.4.240.0030.00316.55
7.4.230.0040.00416.34
7.4.220.0110.00716.53
7.4.210.0080.00616.62
7.4.200.0080.00016.69
7.4.160.0120.00416.64
7.4.150.0090.01217.40
7.4.140.0110.00917.86
7.4.130.0150.00516.40
7.4.120.0120.00516.55
7.4.110.0100.00716.57
7.4.100.0070.01016.30
7.4.90.0030.01316.51
7.4.80.0100.00719.39
7.4.70.0060.00916.57
7.4.60.0090.01016.61
7.4.50.0020.01016.71
7.4.40.0100.00716.43
7.4.30.0170.00816.50
7.4.10.0160.00314.86
7.4.00.0050.01014.93
7.3.330.0050.00013.45
7.3.320.0000.00513.42
7.3.310.0030.00316.45
7.3.300.0030.00316.46
7.3.290.0070.01016.33
7.3.280.0090.00916.35
7.3.270.0070.01017.40
7.3.260.0040.01316.63
7.3.250.0110.00716.43
7.3.240.0060.01316.59
7.3.230.0100.00716.63
7.3.210.0060.01516.54
7.3.200.0060.01219.39
7.3.190.0090.00616.60
7.3.180.0080.00816.51
7.3.170.0030.01916.57
7.3.160.0090.00616.63
7.3.130.0100.00714.67
7.3.120.0110.00514.88
7.3.110.0060.00914.86
7.3.100.0070.00714.85
7.3.90.0030.00714.88
7.3.80.0050.01114.94
7.3.70.0060.00714.86
7.3.60.0050.00514.73
7.3.50.0040.00914.74
7.3.40.0050.00414.73
7.3.30.0050.00814.92
7.3.20.0080.00616.78
7.3.10.0030.00616.67
7.3.00.0070.00916.69
7.2.330.0100.00716.47
7.2.320.0100.00716.81
7.2.310.0060.01216.72
7.2.300.0090.01016.45
7.2.290.0120.00916.75
7.2.260.0090.00915.05
7.2.250.0080.01114.89
7.2.240.0090.00815.09
7.2.230.0030.01115.00
7.2.220.0090.00614.70
7.2.210.0040.01115.07
7.2.200.0050.00914.97
7.2.190.0060.00915.09
7.2.180.0060.00814.94
7.2.170.0010.01015.01
7.2.160.0000.01515.03
7.2.150.0050.00516.86
7.2.140.0090.00616.89
7.2.130.0050.00516.65
7.2.120.0030.01516.97
7.2.110.0060.00916.55
7.2.100.0070.00716.72
7.2.90.0030.01016.98
7.2.80.0040.00816.91
7.2.70.0030.00616.75
7.2.60.0040.01016.92
7.2.50.0130.00316.89
7.2.40.0030.00916.79
7.2.30.0000.01517.13
7.2.20.0150.00016.92
7.2.10.0030.00616.69
7.2.00.0030.01118.23
7.1.330.0050.01015.75
7.1.320.0020.00915.81
7.1.310.0030.01015.78
7.1.300.0020.01015.69
7.1.290.0050.00815.79
7.1.280.0020.00815.68
7.1.270.0080.00615.74
7.1.260.0070.00915.94
7.1.250.0040.00415.94
7.1.240.0070.01015.86
7.1.230.0050.00515.96
7.1.220.0030.00915.91
7.1.210.0000.00915.84
7.1.200.0020.01215.93
7.1.190.0060.01215.92
7.1.180.0060.00915.90
7.1.170.0060.00815.78
7.1.160.0140.00015.90
7.1.150.0070.00315.58
7.1.140.0000.01015.69
7.1.130.0070.01015.56
7.1.120.0000.01015.85
7.1.110.0070.00715.54
7.1.100.0010.01016.83
7.1.90.0000.01015.80
7.1.80.0030.00616.02
7.1.70.0010.00916.59
7.1.60.0030.01317.70
7.1.50.0070.01016.31
7.1.40.0070.00715.82
7.1.30.0030.01015.66
7.1.20.0000.01215.61
7.1.10.0070.00715.76
7.1.00.0050.04019.03
7.0.330.0000.01415.38
7.0.320.0000.01315.48
7.0.310.0040.00815.23
7.0.300.0090.00615.42
7.0.290.0000.01215.25
7.0.280.0040.00415.34
7.0.270.0000.01215.13
7.0.260.0070.00415.25
7.0.250.0060.00615.20
7.0.240.0060.00915.63
7.0.230.0040.01115.55
7.0.220.0070.00715.21
7.0.210.0040.00815.58
7.0.200.0010.01016.22
7.0.190.0080.00415.34
7.0.180.0060.00615.46
7.0.170.0040.01115.58
7.0.160.0000.01115.28
7.0.150.0000.01415.45
7.0.140.0040.00415.58
7.0.130.0080.00315.53
7.0.120.0000.01115.47
7.0.110.0060.00615.43
7.0.100.0110.00415.33
7.0.90.0030.01015.24
7.0.80.0030.00715.46
7.0.70.0030.00615.31
7.0.60.0110.04618.58
7.0.50.0080.04316.66
7.0.40.0120.04216.73
7.0.30.0170.02316.80
7.0.20.0140.02716.82
7.0.10.0000.05116.69
7.0.00.0050.04616.75
5.6.400.0060.00614.57
5.6.390.0070.01014.55
5.6.380.0060.01014.69
5.6.370.0060.00614.43
5.6.360.0080.00414.56
5.6.350.0040.00414.28
5.6.340.0030.01014.61
5.6.330.0090.00614.30
5.6.320.0040.01114.25
5.6.310.0060.00314.61
5.6.300.0030.01314.61
5.6.290.0030.01014.67
5.6.280.0050.02017.69
5.6.270.0030.00614.17
5.6.260.0000.01414.31
5.6.250.0090.00614.39
5.6.240.0040.01114.08
5.6.230.0000.01314.56
5.6.220.0000.01414.48
5.6.210.0070.03417.45
5.6.200.0120.04016.26
5.6.190.0040.03217.50
5.6.180.0170.04217.34
5.6.170.0130.03417.52
5.6.160.0040.03917.40
5.6.150.0030.02516.17
5.6.140.0020.02416.26
5.6.130.0060.03316.43
5.6.120.0100.02017.76
5.6.110.0020.02517.58
5.6.100.0070.03717.63
5.6.90.0050.04517.75
5.6.80.0050.03917.26
5.6.70.0030.00914.32
5.6.60.0040.00714.09
5.6.50.0030.00614.05
5.6.40.0030.01314.23
5.6.30.0120.00614.29
5.6.20.0080.00814.38
5.6.10.0000.01114.24
5.6.00.0070.00714.45
5.5.380.0070.00714.21
5.5.370.0030.01014.08
5.5.360.0120.00614.02
5.5.350.0040.04317.53
5.5.340.0070.02516.20
5.5.330.0020.02717.29
5.5.320.0220.02117.16
5.5.310.0190.02717.34
5.5.300.0170.02516.12
5.5.290.0070.04416.21
5.5.280.0050.03517.62
5.5.270.0070.03817.58
5.5.260.0090.04217.51
5.5.250.0020.02717.47
5.5.240.0030.02517.12
5.5.230.0050.00614.36
5.5.220.0040.00714.38
5.5.210.0000.01114.32
5.5.200.0090.00914.12
5.5.190.0030.01214.09
5.5.180.0110.00014.27
5.5.170.0120.00314.05
5.5.160.0000.01714.14
5.5.150.0040.00814.39
5.5.140.0070.00714.41
5.5.130.0060.00914.19
5.5.120.0060.00614.09
5.5.110.0000.01214.40
5.5.100.0000.00914.14
5.5.90.0070.00314.20
5.5.80.0060.01014.47
5.5.70.0130.00314.15
5.5.60.0120.00314.30
5.5.50.0060.00814.24
5.5.40.0070.00714.05
5.5.30.0050.00313.95
5.5.20.0000.00814.41
5.5.10.0040.00813.92
5.5.00.0090.00314.02

preferences:
49.21 ms | 401 KiB | 5 Q