3v4l.org

run code in 300+ PHP versions simultaneously
<?php register_shutdown_function(function () { $error = error_get_last(); if (in_array($error['type'], array(E_ERROR, E_CORE_ERROR, E_COMPILE_ERROR, E_PARSE, E_RECOVERABLE_ERROR, E_USER_ERROR), TRUE)) { // somehow handle this error echo 'Error occurred. :('; } var_dump($error); }); invalid();

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.40.0120.00918.96
8.3.30.0120.00619.08
8.3.20.0050.00320.04
8.3.10.0040.00420.66
8.3.00.0050.00319.26
8.2.170.0080.00622.96
8.2.160.0030.01420.26
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0060.00326.16
8.2.120.0070.00022.06
8.2.110.0000.00820.38
8.2.100.0070.00418.03
8.2.90.0090.00019.35
8.2.80.0050.00317.97
8.2.70.0030.00617.63
8.2.60.0060.00318.04
8.2.50.0070.00418.07
8.2.40.0000.00718.34
8.2.30.0000.00918.19
8.2.20.0040.00417.67
8.2.10.0030.00618.04
8.2.00.0070.00317.68
8.1.270.0000.00822.02
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0080.00023.86
8.1.230.0000.01119.11
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0000.00818.50
8.1.160.0040.00422.04
8.1.150.0050.00218.77
8.1.140.0030.00617.46
8.1.130.0000.00817.71
8.1.120.0040.00417.48
8.1.110.0040.00417.52
8.1.100.0000.00717.39
8.1.90.0070.00017.48
8.1.80.0040.00417.52
8.1.70.0030.00317.45
8.1.60.0060.00317.46
8.1.50.0040.00417.57
8.1.40.0040.00417.50
8.1.30.0000.00817.63
8.1.20.0060.00317.62
8.1.10.0080.00017.48
8.1.00.0000.00717.50
8.0.300.0070.00018.77
8.0.290.0040.00416.88
8.0.280.0000.00718.51
8.0.270.0000.00717.17
8.0.260.0040.00417.13
8.0.250.0030.00316.96
8.0.240.0030.00316.95
8.0.230.0030.00316.98
8.0.220.0000.00616.83
8.0.210.0040.00416.98
8.0.200.0000.00617.06
8.0.190.0030.00716.94
8.0.180.0080.00016.91
8.0.170.0000.00816.86
8.0.160.0040.00416.83
8.0.150.0040.00416.80
8.0.140.0030.00516.90
8.0.130.0000.00713.38
8.0.120.0000.00716.80
8.0.110.0030.00316.79
8.0.100.0000.00716.92
8.0.90.0040.00416.99
8.0.80.0060.00916.92
8.0.70.0040.00417.00
8.0.60.0040.00416.92
8.0.50.0050.00216.90
8.0.30.0070.01217.25
8.0.20.0140.00917.40
8.0.10.0040.00416.94
8.0.00.0090.00916.94
7.4.330.0000.00515.14
7.4.320.0060.00016.50
7.4.300.0000.00616.65
7.4.290.0030.00316.50
7.4.280.0050.00216.61
7.4.270.0000.00616.41
7.4.260.0040.00416.56
7.4.250.0000.00816.47
7.4.240.0030.00316.41
7.4.230.0070.00016.44
7.4.220.0090.01016.56
7.4.210.0140.00016.53
7.4.200.0080.00016.41
7.4.160.0120.00416.45
7.4.150.0070.01017.40
7.4.140.0090.01017.86
7.4.130.0080.01116.65
7.4.120.0140.01016.60
7.4.110.0080.00816.70
7.4.100.0060.01216.46
7.4.90.0070.01016.52
7.4.80.0140.00319.37
7.4.70.0130.00616.36
7.4.60.0090.01016.58
7.4.50.0000.00416.58
7.4.40.0120.00616.50
7.4.30.0090.00916.64
7.4.10.0100.00714.79
7.4.00.0090.00814.87
7.3.330.0020.00213.23
7.3.320.0000.00613.19
7.3.310.0030.00516.23
7.3.300.0000.00716.37
7.3.290.0040.01116.35
7.3.280.0060.01016.29
7.3.270.0090.00917.40
7.3.260.0150.00616.33
7.3.250.0090.00816.54
7.3.240.0070.01016.36
7.3.230.0110.00816.39
7.3.210.0070.01016.45
7.3.200.0090.00919.39
7.3.190.0060.01216.49
7.3.180.0080.00816.63
7.3.170.0070.01416.46
7.3.160.0080.00816.33
7.3.130.0060.00914.69
7.3.120.0100.01014.74
7.3.110.0070.01214.85
7.3.100.0050.01014.75
7.3.90.0070.00914.71
7.3.80.0020.01114.67
7.3.70.0060.00614.82
7.3.60.0090.00514.86
7.3.50.0060.01014.68
7.3.40.0100.00514.83
7.3.30.0060.00614.71
7.3.20.0080.00716.65
7.3.10.0030.00616.78
7.3.00.0080.00516.69
7.2.330.0180.00016.54
7.2.320.0060.01616.78
7.2.310.0070.01016.90
7.2.300.0040.01416.37
7.2.290.0000.01616.79
7.2.260.0070.01115.33
7.2.250.0080.00815.16
7.2.240.0060.01114.77
7.2.230.0080.00714.92
7.2.220.0050.01014.90
7.2.210.0030.00614.89
7.2.200.0090.00414.94
7.2.190.0060.00915.01
7.2.180.0070.00915.11
7.2.170.0050.00814.92
7.2.160.0050.01014.95
7.2.150.0060.00616.80
7.2.140.0130.00216.96
7.2.130.0100.00516.88
7.2.120.0070.00816.64
7.2.110.0100.00216.93
7.2.100.0040.00916.90
7.2.90.0080.00817.03
7.2.80.0040.00717.08
7.2.70.0060.00517.03
7.2.60.0060.00916.77
7.2.50.0060.00816.85
7.2.40.0060.00616.93
7.2.30.0110.00416.84
7.2.20.0060.00916.67
7.2.10.0050.01016.88
7.2.00.0060.00917.60
7.1.330.0020.01315.85
7.1.320.0040.00915.74
7.1.310.0060.00515.81
7.1.300.0070.00715.65
7.1.290.0050.00715.97
7.1.280.0080.00515.67
7.1.270.0060.00515.79
7.1.260.0070.00515.64
7.1.250.0040.00815.87
7.1.240.0030.00815.68
7.1.230.0040.00615.86
7.1.220.0050.00815.76
7.1.210.0060.00715.80
7.1.200.0070.00715.73
7.1.190.0050.00515.77
7.1.180.0080.00515.88
7.1.170.0090.00515.74
7.1.160.0070.00715.80
7.1.150.0050.01015.82
7.1.140.0090.00415.59
7.1.130.0110.00315.88
7.1.120.0050.01115.75
7.1.110.0070.00915.72
7.1.100.0050.00716.35
7.1.90.0020.00915.90
7.1.80.0030.00815.69
7.1.70.0030.00816.21
7.1.60.0060.01116.90
7.1.50.0040.01316.04
7.1.40.0020.00915.83
7.1.30.0070.00715.76
7.1.20.0090.00515.66
7.1.10.0080.00615.66
7.1.00.0030.03218.03
7.0.330.0030.00715.42
7.0.320.0030.00915.25
7.0.310.0050.00715.48
7.0.300.0100.00315.13
7.0.290.0080.00815.31
7.0.280.0050.00815.26
7.0.270.0090.00515.36
7.0.260.0080.00515.30
7.0.250.0020.01315.14
7.0.240.0030.01115.19
7.0.230.0040.00815.48
7.0.220.0040.00915.47
7.0.210.0040.00815.21
7.0.200.0050.00715.64
7.0.190.0030.00715.35
7.0.180.0040.00715.35
7.0.170.0100.00515.24
7.0.160.0070.00315.29
7.0.150.0020.01115.32
7.0.140.0030.02917.48
7.0.130.0060.00615.40
7.0.120.0060.00815.45
7.0.110.0020.00915.35
7.0.100.0050.00815.36
7.0.90.0060.00715.40
7.0.80.0030.01015.23
7.0.70.0040.02917.49
7.0.60.0080.02817.44
7.0.50.0040.03517.57
7.0.40.0040.02715.59
7.0.30.0040.03415.68
7.0.20.0000.02215.57
7.0.10.0040.03315.58
7.0.00.0040.02415.54
5.6.400.0040.00814.00
5.6.390.0080.00514.31
5.6.380.0000.01014.31
5.6.370.0050.00814.12
5.6.360.0080.00514.21
5.6.350.0030.01414.21
5.6.340.0060.00714.24
5.6.330.0050.00714.49
5.6.320.0070.00714.31
5.6.310.0050.00814.57
5.6.300.0030.01014.54
5.6.290.0020.01014.58
5.6.280.0020.03016.66
5.6.270.0060.01014.46
5.6.260.0020.01014.50
5.6.250.0050.00814.37
5.6.240.0030.01314.26
5.6.230.0060.00814.38
5.6.220.0040.03516.43
5.6.210.0020.03416.44
5.6.200.0050.03616.45
5.6.190.0030.02516.51
5.6.180.0020.03816.49
5.6.170.0030.02516.68
5.6.160.0070.03016.58
5.6.150.0060.03016.49
5.6.140.0040.03616.63
5.6.130.0050.03216.59
5.6.120.0100.02616.52
5.6.110.0020.03716.43
5.6.100.0050.03616.54
5.6.90.0060.03416.56
5.6.80.0060.02916.24
5.6.70.0080.01516.25
5.6.60.0030.01916.21
5.6.50.0030.03116.25
5.6.40.0030.02716.28
5.6.30.0060.01716.31
5.6.20.0030.02016.33
5.6.10.0030.01916.36
5.6.00.0020.01916.22
5.5.380.0020.01114.48
5.5.370.0050.00814.26
5.5.360.0050.02416.40
5.5.350.0080.02216.34
5.5.340.0020.02716.33
5.5.330.0090.02916.47
5.5.320.0030.03316.37
5.5.310.0030.02916.51
5.5.300.0060.03116.38
5.5.290.0050.03416.33
5.5.280.0010.02816.36
5.5.270.0020.03516.40
5.5.260.0050.03016.57
5.5.250.0070.03016.35
5.5.240.0070.02916.20
5.5.230.0080.02816.29
5.5.220.0060.02016.20
5.5.210.0020.02516.23
5.5.200.0000.02616.19
5.5.190.0080.03116.12
5.5.180.0050.03216.06
5.5.170.0070.00514.21
5.5.160.0080.01416.12
5.5.150.0090.03016.24
5.5.140.0040.03016.30
5.5.130.0020.03016.26
5.5.120.0070.02916.14
5.5.110.0060.02516.09
5.5.100.0050.03216.22
5.5.90.0070.03016.03
5.5.80.0050.03016.13
5.5.70.0050.02915.99
5.5.60.0070.02316.25
5.5.50.0050.02416.26
5.5.40.0060.03116.29
5.5.30.0010.02916.05
5.5.20.0030.02816.00
5.5.10.0090.02916.14
5.5.00.0040.02816.04
5.4.450.0040.03114.15
5.4.440.0060.02214.17
5.4.430.0050.01814.16
5.4.420.0040.02114.17
5.4.410.0060.02414.14
5.4.400.0040.02914.07
5.4.390.0030.01814.09
5.4.380.0030.03014.09
5.4.370.0070.02714.11
5.4.360.0070.01314.06
5.4.350.0060.01214.11
5.4.340.0040.02614.04
5.4.330.0050.00411.58
5.4.320.0060.02014.01
5.4.310.0040.03013.98
5.4.300.0050.02513.90
5.4.290.0070.02813.98
5.4.280.0040.02014.17
5.4.270.0040.03114.15
5.4.260.0050.02914.04
5.4.250.0060.02214.08
5.4.240.0030.02014.02
5.4.230.0040.03014.10
5.4.220.0020.02314.12
5.4.210.0040.02813.92
5.4.200.0040.02614.08
5.4.190.0030.03014.11
5.4.180.0050.02713.96
5.4.170.0060.03113.96
5.4.160.0030.02814.10
5.4.150.0040.02813.89
5.4.140.0070.02713.11
5.4.130.0030.02913.19
5.4.120.0040.02813.08
5.4.110.0020.03013.16
5.4.100.0030.02113.28
5.4.90.0100.00913.27
5.4.80.0060.02613.17
5.4.70.0040.02713.08
5.4.60.0030.02813.21
5.4.50.0060.02813.10
5.4.40.0070.02713.11
5.4.30.0020.02913.16
5.4.20.0040.02913.08
5.4.10.0050.01513.11
5.4.00.0040.02712.95
5.3.290.0030.07714.64
5.3.280.0000.06014.71
5.3.270.0100.06714.58
5.3.260.0130.06314.72
5.3.250.0030.05314.71
5.3.240.0100.07314.71
5.3.230.0070.07314.62
5.3.220.0030.07314.56
5.3.210.0000.05714.49
5.3.200.0030.06714.66
5.3.190.0100.06014.54
5.3.180.0030.08014.68
5.3.170.0000.05714.65
5.3.160.0000.08014.68
5.3.150.0030.08014.67
5.3.140.0070.06314.51
5.3.130.0000.06314.67
5.3.120.0100.05714.53
5.3.110.0030.05714.55
5.3.100.0000.06314.05
5.3.90.0000.07713.98
5.3.80.0070.07313.95
5.3.70.0130.06714.03
5.3.60.0030.07014.04
5.3.50.0030.07713.84
5.3.40.0000.07014.08
5.3.30.0070.04713.89
5.3.20.0030.06313.79
5.3.10.0030.07013.54
5.3.00.0030.05013.70
5.2.170.0000.06312.54
5.2.160.0070.05712.54
5.2.150.0070.05712.54
5.2.140.0030.03712.54
5.2.130.0000.05712.54
5.2.120.0030.06312.54
5.2.110.0030.05712.54
5.2.100.0000.04312.54
5.2.90.0000.04712.54
5.2.80.0070.05712.54
5.2.70.0030.06012.54
5.2.60.0030.05312.54
5.2.50.0000.06012.54
5.2.40.0030.06012.54
5.2.30.0070.05712.54
5.2.20.0000.06312.54
5.2.10.0030.05712.54
5.2.00.0070.05712.54
5.1.60.0030.05012.54
5.1.50.0030.05312.54
5.1.40.0070.03312.54
5.1.30.0100.02312.54
5.1.20.0030.03712.54
5.1.10.0030.04012.54
5.1.00.0000.03312.54
5.0.50.0030.04012.54
5.0.40.0030.02012.54
5.0.30.0000.03712.54
5.0.20.0000.02712.54
5.0.10.0000.02012.54
5.0.00.0000.03012.54
4.4.90.0000.03012.54
4.4.80.0000.03712.54
4.4.70.0070.02712.54
4.4.60.0070.02312.54
4.4.50.0000.03712.54
4.4.40.0000.05312.54
4.4.30.0030.02312.54
4.4.20.0000.02312.54
4.4.10.0030.01312.54
4.4.00.0000.03312.54
4.3.110.0000.01712.54
4.3.100.0000.01712.54
4.3.90.0000.01312.54
4.3.80.0000.02312.54
4.3.70.0000.01312.54
4.3.60.0000.01312.54
4.3.50.0000.01312.54
4.3.40.0000.02312.54
4.3.30.0000.01712.54
4.3.20.0000.02712.54
4.3.10.0000.01712.54
4.3.00.0030.01312.54

preferences:
47.44 ms | 400 KiB | 5 Q