3v4l.org

run code in 300+ PHP versions simultaneously
<?php function returns_null(): void { return null; // Fatal error: A void function must not return a value } try { returns_null(); echo "OK!"; } catch (Error $e) { echo "Error:"; var_dump($e); }

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.90.0040.00418.24
8.3.80.0100.00317.97
8.3.70.0170.00316.75
8.3.60.0110.00416.50
8.3.50.0080.01321.09
8.3.40.0170.00318.72
8.3.30.0060.00918.41
8.3.20.0150.00320.09
8.3.10.0050.00321.83
8.3.00.0050.00323.71
8.2.210.0060.01226.77
8.2.200.0090.00018.29
8.2.190.0110.01116.63
8.2.180.0070.01418.42
8.2.170.0080.00622.96
8.2.160.0040.01120.76
8.2.150.0020.00525.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0030.00721.05
8.2.100.0080.00417.80
8.2.90.0000.00818.95
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0090.00017.80
8.2.50.0030.00618.07
8.2.40.0000.01020.36
8.2.30.0040.00419.32
8.2.20.0060.00317.54
8.2.10.0030.00617.83
8.2.00.0050.00217.92
8.1.290.0040.00718.88
8.1.280.0090.00625.92
8.1.270.0030.00723.99
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0080.00023.96
8.1.230.0040.00719.00
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00617.22
8.1.190.0060.00317.23
8.1.180.0030.00518.10
8.1.170.0000.00818.37
8.1.160.0040.00420.46
8.1.150.0000.00718.75
8.1.140.0060.00319.36
8.1.130.0070.00017.62
8.1.120.0040.00417.34
8.1.110.0060.00317.30
8.1.100.0030.00617.27
8.1.90.0080.00017.32
8.1.80.0000.00817.32
8.1.70.0000.00717.25
8.1.60.0000.00817.44
8.1.50.0070.00017.41
8.1.40.0030.00517.34
8.1.30.0060.00317.51
8.1.20.0000.00717.49
8.1.10.0070.00017.39
8.1.00.0000.00717.29
8.0.300.0060.00318.77
8.0.290.0000.00816.63
8.0.280.0000.00718.30
8.0.270.0000.00717.13
8.0.260.0030.00317.15
8.0.250.0030.00316.87
8.0.240.0000.00616.87
8.0.230.0000.00716.79
8.0.220.0000.00716.73
8.0.210.0040.00416.86
8.0.200.0070.00016.86
8.0.190.0030.00316.93
8.0.180.0060.00316.82
8.0.170.0000.00916.81
8.0.160.0070.00016.81
8.0.150.0000.00716.62
8.0.140.0040.00416.80
8.0.130.0000.00613.21
8.0.120.0060.00316.69
8.0.110.0070.00016.83
8.0.100.0000.00716.74
8.0.90.0040.00416.76
8.0.80.0060.00916.82
8.0.70.0000.00816.80
8.0.60.0050.00316.77
8.0.50.0030.00316.70
8.0.30.0100.00816.88
8.0.20.0120.01017.40
8.0.10.0040.00416.85
8.0.00.0060.01316.45
7.4.330.0000.00616.74
7.4.320.0000.00616.36
7.4.300.0080.00016.39
7.4.290.0070.00016.47
7.4.280.0060.00316.43
7.4.270.0070.00016.31
7.4.260.0040.00416.43
7.4.250.0040.00416.44
7.4.240.0050.00216.30
7.4.230.0030.00316.29
7.4.220.0060.01216.37
7.4.210.0040.01016.42
7.4.200.0000.00716.41
7.4.160.0030.01316.21
7.4.150.0060.01317.40
7.4.140.0070.01317.86
7.4.130.0110.00616.54
7.4.120.0080.01016.39
7.4.110.0140.00416.26
7.4.100.0140.00516.55
7.4.90.0070.01016.21
7.4.80.0150.00819.39
7.4.70.0070.01016.32
7.4.60.0090.00616.42
7.4.50.0030.01016.27
7.4.40.0030.01616.32
7.4.30.0110.00716.60
7.4.10.0070.01114.71
7.4.00.0070.01114.60
7.3.330.0000.00513.05
7.3.320.0030.00313.25
7.3.310.0040.00416.25
7.3.300.0070.00016.21
7.3.290.0060.00016.23
7.3.280.0100.01016.22
7.3.270.0090.01217.40
7.3.260.0130.00316.39
7.3.240.0060.01016.33
7.3.230.0110.00616.42
7.3.210.0100.01316.14
7.3.200.0130.00319.39
7.3.190.0110.00616.13
7.3.180.0070.01016.23
7.3.170.0090.00916.27
7.3.160.0030.01216.27
7.3.130.0160.00314.73
7.3.120.0080.00814.70
7.3.110.0060.01114.63
7.3.100.0050.01014.77
7.3.90.0050.01014.52
7.3.80.0080.00414.76
7.3.70.0050.00714.66
7.3.60.0060.00814.60
7.3.50.0060.00714.56
7.3.40.0060.00614.59
7.3.30.0060.00514.67
7.3.20.0080.00516.50
7.3.10.0080.00716.52
7.3.00.0060.00616.56
7.2.330.0070.01116.20
7.2.320.0070.01016.34
7.2.310.0030.01316.45
7.2.300.0150.00816.29
7.2.290.0100.00716.51
7.2.260.0060.01214.48
7.2.250.0070.00914.82
7.2.240.0050.01114.88
7.2.230.0080.00814.82
7.2.220.0080.00514.71
7.2.210.0030.01014.63
7.2.200.0070.00614.80
7.2.190.0070.00914.76
7.2.180.0080.00514.79
7.2.170.0060.00614.76
7.2.160.0040.01114.57
7.2.150.0070.00716.50
7.2.140.0060.00816.74
7.2.130.0080.00716.75
7.2.120.0060.00816.81
7.2.110.0010.01216.59
7.2.100.0040.01016.57
7.2.90.0050.00916.59
7.2.80.0040.00916.56
7.2.70.0030.01016.64
7.2.60.0060.00616.69
7.2.50.0060.00916.63
7.2.40.0090.00616.78
7.2.30.0060.01016.74
7.2.20.0050.01016.77
7.2.10.0060.00916.63
7.2.00.0040.00916.69
7.1.330.0070.00715.55
7.1.320.0040.00815.55
7.1.310.0100.00315.64
7.1.300.0050.00815.62
7.1.290.0070.00515.54
7.1.280.0050.00715.52
7.1.270.0060.00615.43
7.1.260.0040.00715.62
7.1.250.0080.00315.62
7.1.240.0030.00615.30
7.1.230.0060.00615.62
7.1.220.0060.00615.67
7.1.210.0030.00615.55
7.1.200.0080.00715.63
7.1.190.0080.00815.33
7.1.180.0030.00615.73
7.1.170.0090.00615.39
7.1.160.0070.00715.63
7.1.150.0030.01015.50
7.1.140.0040.01315.45
7.1.130.0060.00915.28
7.1.120.0070.01115.66
7.1.110.0000.01715.71
7.1.100.0070.00715.58
7.1.90.0060.00315.73
7.1.80.0110.00415.73
7.1.70.0040.00616.27
7.1.60.0080.00717.46
7.1.50.0080.01016.05
7.1.40.0050.00515.62
7.1.30.0000.01415.53
7.1.20.0000.01415.39
7.1.10.0000.01315.59
7.1.00.0030.04018.94
7.0.330.0150.00015.10
7.0.320.0090.00315.28
7.0.310.0000.01515.21
7.0.300.0120.00015.39
7.0.290.0070.01015.43
7.0.280.0160.00015.29
7.0.270.0090.00915.37
7.0.260.0040.01015.32
7.0.250.0030.00915.24
7.0.240.0090.00615.38
7.0.230.0070.00715.52
7.0.220.0100.00315.57
7.0.210.0090.00015.43
7.0.200.0060.00615.80
7.0.190.0070.00315.16
7.0.180.0070.00715.23
7.0.170.0000.01615.54
7.0.160.0000.01015.36
7.0.150.0040.00815.34
7.0.140.0030.00615.34
7.0.130.0040.00815.43
7.0.120.0030.00815.21
7.0.110.0030.00915.50
7.0.100.0080.00415.49
7.0.90.0080.00415.29
7.0.80.0030.00515.35
7.0.70.0030.02618.56
7.0.60.0020.02718.58
7.0.50.0020.02618.61
7.0.40.0050.01816.73
7.0.30.0040.02116.66
7.0.20.0060.04516.84
7.0.10.0100.02716.79
7.0.00.0060.03216.60
5.6.400.0030.00614.29
5.6.390.0120.00314.47
5.6.380.0060.00613.94
5.6.370.0060.00614.15
5.6.360.0040.01114.27
5.6.350.0070.01113.82
5.6.340.0080.00814.14
5.6.330.0110.00713.88
5.6.320.0000.01513.95
5.6.310.0040.00814.04
5.6.300.0040.00414.41
5.6.290.0070.00714.43
5.6.280.0010.03517.45
5.6.270.0000.01314.18
5.6.260.0040.00714.35
5.6.250.0030.00714.26
5.6.240.0060.00813.99
5.6.230.0000.01414.19
5.6.220.0000.03617.31
5.6.210.0020.04717.26
5.6.200.0030.02517.47
5.6.190.0020.02617.58
5.6.180.0050.02217.64
5.6.170.0030.02317.61
5.6.160.0050.02817.59
5.6.150.0050.04317.59
5.6.140.0070.04417.54
5.6.130.0030.04517.48
5.6.120.0050.05017.42
5.6.110.0070.04017.54
5.6.100.0090.04417.60
5.6.90.0050.04617.62
5.6.80.0100.04017.29
5.6.70.0050.04217.31
5.6.60.0030.03617.24
5.6.50.0050.04717.22
5.6.40.0020.03517.17
5.6.30.0060.02717.26
5.6.20.0030.04317.17
5.6.10.0030.04917.18
5.6.00.0020.04717.30
5.5.380.0070.00413.75
5.5.370.0060.00614.15
5.5.360.0030.02217.13
5.5.350.0060.02217.15
5.5.340.0080.01817.40
5.5.330.0030.02717.39
5.5.320.0030.02217.53
5.5.310.0020.02417.51
5.5.300.0080.04417.54
5.5.290.0020.04817.54
5.5.280.0160.03817.49
5.5.270.0060.04217.39
5.5.260.0050.03617.60
5.5.250.0030.02817.29
5.5.240.0030.03317.03
5.5.230.0040.04517.05
5.5.220.0040.04217.13
5.5.210.0030.04117.19
5.5.200.0070.02817.10
5.5.190.0080.04017.18
5.5.180.0010.03316.97
5.5.170.0080.00313.90
5.5.160.0080.04017.07
5.5.150.0040.03417.13
5.5.140.0090.03917.01
5.5.130.0050.02617.12
5.5.120.0050.02917.08
5.5.110.0030.04217.02
5.5.100.0090.04016.97
5.5.90.0010.03617.00
5.5.80.0120.04117.06
5.5.70.0000.05017.11
5.5.60.0040.04717.13
5.5.50.0050.02917.07
5.5.40.0000.04316.87
5.5.30.0060.03116.90
5.5.20.0030.04316.83
5.5.10.0000.04716.87
5.5.00.0030.03517.06

preferences:
31.37 ms | 401 KiB | 5 Q