3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function($ErrLevel, $ErrMessage) { if ($ErrLevel == E_RECOVERABLE_ERROR) // order this according to what your app uses most return strpos($ErrMessage, 'must be an instance of string, string') || strpos($ErrMessage, 'must be an instance of integer, integer') || strpos($ErrMessage, 'must be an instance of float, double') || strpos($ErrMessage, 'must be an instance of boolean, boolean') || strpos($ErrMessage, 'must be an instance of resource, resource'); }); function miauw(string $string) { echo 'de catchable FATAL error wordt onderdrukt wanneer $string een string is'; } miauw('woef'); // de catchable FATAL error wordt niet onderdrukt, dus de uitvoer zal stoppen miauw(42); echo 'dit wordt nooit uitgevoerd';

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.0040.00417.73
8.3.140.0130.00616.59
8.3.130.0110.00016.79
8.3.120.0030.00618.93
8.3.110.0060.00320.94
8.3.100.0060.00316.62
8.3.90.0050.00318.33
8.3.80.0040.00718.31
8.3.70.0040.01416.58
8.3.60.0140.00718.43
8.3.50.0100.01221.14
8.3.40.0060.00918.85
8.3.30.0030.01020.21
8.3.20.0040.00420.29
8.3.10.0060.00322.09
8.3.00.0000.00722.44
8.2.260.0140.00016.52
8.2.250.0040.00418.46
8.2.240.0050.00317.21
8.2.230.0060.00322.58
8.2.220.0000.00824.06
8.2.210.0080.00026.77
8.2.200.0030.00718.41
8.2.190.0070.00718.16
8.2.180.0110.01116.50
8.2.170.0070.00722.96
8.2.160.0070.00722.26
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0030.00619.64
8.2.110.0000.00820.35
8.2.100.0120.00017.72
8.2.90.0070.00019.28
8.2.80.0050.00317.97
8.2.70.0000.00917.49
8.2.60.0030.00517.80
8.2.50.0080.00018.07
8.2.40.0000.00819.95
8.2.30.0000.00919.51
8.2.20.0040.00417.65
8.2.10.0030.00617.65
8.2.00.0040.00417.50
8.1.300.0000.00920.37
8.1.290.0090.00018.88
8.1.280.0040.01125.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00619.14
8.1.230.0030.00917.42
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0050.00517.23
8.1.190.0030.00517.23
8.1.180.0000.00818.10
8.1.170.0080.00018.66
8.1.160.0040.00418.79
8.1.150.0000.00718.63
8.1.140.0000.00717.38
8.1.130.0030.00317.43
8.1.120.0070.00017.37
8.1.110.0040.00417.29
8.1.100.0040.00417.45
8.1.90.0030.00317.40
8.1.80.0000.00717.40
8.1.70.0030.00317.38
8.1.60.0030.00617.52
8.1.50.0000.00817.45
8.1.40.0040.00417.46
8.1.30.0030.00617.56
8.1.20.0040.00417.64
8.1.10.0060.00317.49
8.1.00.0070.00017.35
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0040.00418.32
8.0.270.0030.00316.89
8.0.260.0050.00316.82
8.0.250.0070.00016.85
8.0.240.0000.00716.90
8.0.230.0030.00316.87
8.0.220.0060.00016.91
8.0.210.0000.00816.78
8.0.200.0000.00617.01
8.0.190.0080.00017.02
8.0.180.0000.00716.94
8.0.170.0040.00416.90
8.0.160.0040.00417.00
8.0.150.0000.00816.88
8.0.140.0000.00716.85
8.0.130.0030.00313.43
8.0.120.0080.00016.81
8.0.110.0070.00016.91
8.0.100.0040.00416.81
8.0.90.0000.00717.02
8.0.80.0120.00316.91
8.0.70.0000.00717.07
8.0.60.0000.00716.95
8.0.50.0050.00316.96
8.0.30.0150.00417.15
8.0.20.0020.01717.40
8.0.10.0050.00216.91
8.0.00.0160.01416.73
7.4.330.0000.00615.00
7.4.320.0030.00316.44
7.4.300.0000.00716.54
7.4.290.0060.00016.47
7.4.280.0030.00516.54
7.4.270.0000.00716.46
7.4.260.0030.00313.20
7.4.250.0040.00416.33
7.4.240.0040.00316.40
7.4.230.0030.00316.54
7.4.220.0040.00416.29
7.4.210.0060.00916.44
7.4.200.0030.00316.52
7.4.190.0000.00716.58
7.4.160.0040.01116.29
7.4.150.0140.00317.40
7.4.140.0110.01217.86
7.4.130.0100.00716.37
7.4.120.0140.00316.47
7.4.110.0060.01216.42
7.4.100.0160.00816.51
7.4.90.0060.01216.62
7.4.80.0120.00819.39
7.4.70.0000.01616.50
7.4.60.0060.00916.38
7.4.50.0060.00316.16
7.4.40.0120.00322.77
7.4.30.0040.01216.51
7.4.00.0110.00614.96
7.3.330.0050.00013.10
7.3.320.0030.00313.25
7.3.310.0070.00016.07
7.3.300.0040.00416.11
7.3.290.0120.00916.25
7.3.280.0100.00716.24
7.3.270.0040.01317.40
7.3.260.0090.00916.26
7.3.250.0100.01316.36
7.3.240.0070.01016.46
7.3.230.0060.01216.44
7.3.210.0140.00616.38
7.3.200.0110.00719.39
7.3.190.0090.00916.63
7.3.180.0060.01016.24
7.3.170.0100.00616.27
7.3.160.0040.01816.52
7.3.120.0050.01214.79
7.3.110.0070.00814.53
7.3.100.0050.01014.76
7.3.90.0070.00614.92
7.3.80.0020.01114.65
7.3.70.0060.00414.69
7.3.60.0080.00814.65
7.3.50.0050.00614.66
7.3.40.0080.00614.64
7.3.30.0000.01214.83
7.3.20.0060.00816.70
7.3.10.0070.00416.40
7.3.00.0060.00616.67
7.2.330.0130.00716.65
7.2.320.0060.01216.76
7.2.310.0100.01316.70
7.2.300.0100.00616.64
7.2.290.0080.00816.77
7.2.250.0080.01015.01
7.2.240.0060.01114.99
7.2.230.0060.00914.76
7.2.220.0050.00815.14
7.2.210.0100.00314.83
7.2.200.0060.00814.88
7.2.190.0050.01214.83
7.2.180.0140.00015.01
7.2.170.0040.00914.71
7.2.60.0110.00616.86
7.2.00.0180.00719.17
7.1.330.0030.01015.58
7.1.320.0000.01115.71
7.1.310.0080.00315.76
7.1.300.0040.01015.46
7.1.290.0030.00815.69
7.1.280.0030.00815.65
7.1.270.0030.01115.55
7.1.260.0080.00715.77
7.1.200.0100.00015.64
7.1.70.0040.00417.00
7.1.60.0040.00817.16
7.1.50.0000.02216.90
7.1.00.0070.03322.46
7.0.200.0100.00716.75
7.0.140.0130.06322.01
7.0.100.0100.07019.98
7.0.90.0300.04019.91
7.0.80.0070.06020.13
7.0.70.0100.07319.89
7.0.60.0070.08319.98
7.0.50.0200.06720.38
7.0.40.0000.09020.04
7.0.30.0030.05720.19
7.0.20.0030.07320.11
7.0.10.0030.09019.99
7.0.00.0100.08320.09
5.6.280.0070.07021.11
5.6.250.0270.06320.64
5.6.240.0130.05320.73
5.6.230.0070.08320.60
5.6.220.0070.07720.57
5.6.210.0030.05020.57
5.6.200.0070.05021.12
5.6.190.0070.05320.96
5.6.180.0100.07021.09
5.6.170.0100.08320.97
5.6.160.0070.08020.95
5.6.150.0170.06021.09
5.6.140.0070.08021.07
5.6.130.0130.04321.02
5.6.120.0070.05721.05
5.6.110.0070.04721.18
5.6.100.0130.05720.94
5.6.90.0130.07320.94
5.6.80.0100.07020.34
5.6.70.0170.06320.52
5.6.60.0130.07020.43
5.6.50.0030.08720.41
5.6.40.0270.02720.37
5.6.30.0100.07320.38
5.6.20.0030.04020.39
5.6.10.0070.07320.41
5.6.00.0070.08020.39
5.5.380.0130.04020.51
5.5.370.0100.06020.53
5.5.360.0170.03720.51
5.5.350.0000.07020.44
5.5.340.0070.07720.90
5.5.330.0130.07020.84
5.5.320.0130.07320.81
5.5.310.0030.08320.79
5.5.300.0130.04720.87
5.5.290.0070.09020.88
5.5.280.0100.05320.81
5.5.270.0030.05320.90
5.5.260.0130.04020.79
5.5.250.0070.05720.73
5.5.240.0200.05720.26
5.5.230.0100.05320.00
5.5.220.0030.05320.28
5.5.210.0030.08320.21
5.5.200.0100.07020.24
5.5.190.0070.08020.23
5.5.180.0070.06719.98
5.5.160.0070.04720.25
5.5.150.0100.06320.26
5.5.140.0070.06320.30
5.5.130.0030.04019.99
5.5.120.0130.07720.15
5.5.110.0000.07320.25
5.5.100.0000.07720.11
5.5.90.0070.07720.02
5.5.80.0170.03020.08
5.5.70.0100.07720.15
5.5.60.0130.07020.10
5.5.50.0070.06020.14
5.5.40.0130.04320.07
5.5.30.0070.07320.07
5.5.20.0030.04320.02
5.5.10.0070.04020.05
5.5.00.0070.05720.04
5.4.450.0030.06719.18
5.4.440.0030.04019.49
5.4.430.0070.07319.37
5.4.420.0070.07719.42
5.4.410.0030.05319.23
5.4.400.0100.07319.17
5.4.390.0130.06718.90
5.4.380.0030.08318.95
5.4.370.0130.04318.90
5.4.360.0030.07319.14
5.4.350.0070.06719.09
5.4.340.0100.04018.90
5.4.320.0130.06718.88
5.4.310.0000.07719.11
5.4.300.0000.04719.04
5.4.290.0030.07718.85
5.4.280.0100.07019.12
5.4.270.0030.03719.04
5.4.260.0100.06719.13
5.4.250.0000.07719.13
5.4.240.0200.06018.94
5.4.230.0070.06719.20
5.4.220.0030.03719.13
5.4.210.0000.06319.03
5.4.200.0030.03718.94
5.4.190.0070.06718.89
5.4.180.0000.08019.11
5.4.170.0100.03019.13
5.4.160.0030.06718.83
5.4.150.0130.07019.15
5.4.140.0100.07316.48
5.4.130.0100.04716.30
5.4.120.0130.02716.45
5.4.110.0030.05716.55
5.4.100.0070.05316.57
5.4.90.0000.07016.40
5.4.80.0000.05016.46
5.4.70.0000.06716.38
5.4.60.0030.06716.34
5.4.50.0070.05716.25
5.4.40.0070.07016.45
5.4.30.0070.07016.36
5.4.20.0100.05716.44
5.4.10.0070.05716.45
5.4.00.0030.06715.83
5.3.290.0030.04314.68
5.3.280.0030.03714.57
5.3.270.0070.07314.72
5.3.260.0030.04714.63
5.3.250.0030.06014.60
5.3.240.0000.05714.59
5.3.230.0000.03714.62
5.3.220.0100.05714.63
5.3.210.0100.04014.63
5.3.200.0030.07314.69
5.3.190.0000.07714.59
5.3.180.0030.07714.60
5.3.170.0030.05314.55
5.3.160.0030.05714.63
5.3.150.0070.06714.65
5.3.140.0070.06314.58
5.3.130.0030.04014.54
5.3.120.0070.07714.48
5.3.110.0100.06714.56
5.3.100.0100.07713.98
5.3.90.0070.07714.08
5.3.80.0070.06314.16
5.3.70.0030.04314.05
5.3.60.0030.03314.00
5.3.50.0130.06314.04
5.3.40.0100.06313.94
5.3.30.0070.03314.03
5.3.20.0070.07013.77
5.3.10.0000.07713.74
5.3.00.0000.06313.71
5.2.170.0030.05311.13
5.2.160.0000.05311.13
5.2.150.0000.03310.99
5.2.140.0130.04311.06
5.2.130.0030.06311.09
5.2.120.0030.05311.02
5.2.110.0030.02711.05
5.2.100.0030.06010.94
5.2.90.0070.05311.15
5.2.80.0030.05311.14
5.2.70.0000.04011.09
5.2.60.0100.04010.84
5.2.50.0070.06010.84
5.2.40.0030.04011.00
5.2.30.0030.06310.84
5.2.20.0070.05310.88
5.2.10.0000.03010.78
5.2.00.0000.03010.62
5.1.60.0100.0439.98
5.1.50.0100.0439.99
5.1.40.0030.0539.98
5.1.30.0000.04010.39
5.1.20.0030.06310.29
5.1.10.0100.0479.91
5.1.00.0000.02710.11
5.0.50.0000.0408.83
5.0.40.0000.0308.83
5.0.30.0000.0478.83
5.0.20.0030.0408.83
5.0.10.0070.0338.83
5.0.00.0000.0578.83
4.4.90.0000.0138.83
4.4.80.0030.0308.83
4.4.70.0000.0178.83
4.4.60.0030.0138.83
4.4.50.0000.0308.83
4.4.40.0030.0508.83
4.4.30.0030.0378.83
4.4.20.0000.0138.83
4.4.10.0000.0378.83
4.4.00.0030.0238.83
4.3.110.0000.0278.83
4.3.100.0030.0308.83
4.3.90.0000.0308.83
4.3.80.0000.0338.83
4.3.70.0030.0208.83
4.3.60.0030.0338.83
4.3.50.0000.0378.83
4.3.40.0000.0438.83
4.3.30.0030.0338.83
4.3.20.0000.0378.83
4.3.10.0030.0338.83
4.3.00.0000.0338.83

preferences:
58 ms | 403 KiB | 5 Q