3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myCustomException extends Exception { } class someClass { public function __call($name, $arguments) { if (!method_exists($this, $name)) { throw new myCustomException($name . ' has shuffled the mortal coil'); } } } $someObject = new someClass(); try { $someObject->someMethodTheObjectDoesntProvide(); } catch (myCustomException $e) { echo $e->getMessage(); }

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.20.0110.01117.91
8.4.10.0100.01017.58
8.3.150.0090.00920.53
8.3.140.0000.01818.84
8.3.130.0100.00616.41
8.3.120.0060.00318.96
8.3.110.0040.00420.94
8.3.100.0040.00418.42
8.3.90.0090.00926.77
8.3.80.0060.00318.43
8.3.70.0070.00716.50
8.3.60.0160.00316.75
8.3.50.0080.01121.93
8.3.40.0100.01018.82
8.3.30.0070.00718.84
8.3.20.0040.00419.22
8.3.10.0070.00021.73
8.3.00.0040.00420.87
8.2.260.0000.00818.59
8.2.250.0090.00016.70
8.2.240.0040.01117.04
8.2.230.0100.00022.58
8.2.220.0050.00537.54
8.2.210.0080.00026.77
8.2.200.0030.00616.88
8.2.190.0120.00918.54
8.2.180.0090.00618.17
8.2.170.0140.00022.96
8.2.160.0100.00320.53
8.2.150.0000.00824.18
8.2.140.0160.00324.66
8.2.130.0000.00821.12
8.2.120.0070.00026.35
8.2.110.0030.00621.05
8.2.100.0090.00317.97
8.2.90.0080.00017.75
8.2.80.0040.00418.91
8.2.70.0040.00417.80
8.2.60.0030.00717.50
8.2.50.0080.00017.75
8.2.40.0040.00417.62
8.2.30.0040.00419.11
8.2.20.0070.00017.73
8.2.10.0030.00518.11
8.2.00.0040.00417.92
8.1.310.0090.00016.49
8.1.300.0100.01017.93
8.1.290.0040.00418.88
8.1.280.0100.00725.92
8.1.270.0000.00824.66
8.1.260.0030.00328.09
8.1.250.0130.00028.09
8.1.240.0090.00019.13
8.1.230.0090.00317.77
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0090.00017.35
8.1.180.0000.00818.10
8.1.170.0050.00317.62
8.1.160.0000.00719.05
8.1.150.0050.00218.88
8.1.140.0000.00719.55
8.1.130.0040.00417.75
8.1.120.0000.00817.36
8.1.110.0000.00817.47
8.1.100.0030.00417.45
8.1.90.0030.00517.43
8.1.80.0000.00817.42
8.1.70.0000.00817.48
8.1.60.0030.00617.63
8.1.50.0000.00817.49
8.1.40.0030.00617.51
8.1.30.0000.00817.63
8.1.20.0040.00417.62
8.1.10.0040.00417.55
8.1.00.0000.01117.46
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00818.43
8.0.270.0000.00717.21
8.0.260.0000.00617.26
8.0.250.0030.00616.98
8.0.240.0070.00017.05
8.0.230.0000.00617.06
8.0.220.0030.00516.96
8.0.210.0070.00016.91
8.0.200.0000.00816.98
8.0.190.0000.00716.92
8.0.180.0030.00416.90
8.0.170.0040.00417.01
8.0.160.0000.00716.87
8.0.150.0030.00316.88
8.0.140.0070.00016.81
8.0.130.0070.00013.44
8.0.120.0000.00716.80
8.0.110.0040.00416.81
8.0.100.0000.00717.01
8.0.90.0040.00417.00
8.0.80.0070.00716.93
8.0.70.0050.00216.81
8.0.60.0050.00316.78
8.0.50.0040.00416.99
8.0.30.0060.01217.29
8.0.20.0090.01017.40
8.0.10.0000.00717.01
8.0.00.0090.00816.61
7.4.330.0020.00315.08
7.4.320.0080.00016.57
7.4.300.0040.00416.64
7.4.290.0040.00416.36
7.4.280.0030.00516.57
7.4.270.0030.00316.60
7.4.260.0080.00016.43
7.4.250.0070.00016.57
7.4.240.0030.00316.55
7.4.230.0000.00716.50
7.4.220.0170.00316.63
7.4.210.0130.00316.42
7.4.200.0000.00716.36
7.4.160.0120.00316.45
7.4.150.0140.01017.40
7.4.140.0100.00717.86
7.4.130.0080.01216.53
7.4.120.0080.01116.58
7.4.110.0130.00316.61
7.4.100.0100.00616.50
7.4.90.0100.00616.48
7.4.80.0130.00717.93
7.4.70.0100.00716.49
7.4.60.0110.00616.66
7.4.50.0130.00316.67
7.4.40.0090.00816.51
7.4.30.0110.00816.37
7.4.20.0160.00316.71
7.4.10.0130.00316.26
7.4.00.0090.00815.81
7.3.330.0000.00713.35
7.3.320.0070.00013.18
7.3.310.0000.00716.23
7.3.300.0000.00716.24
7.3.290.0050.00916.35
7.3.280.0100.00716.33
7.3.270.0060.01317.40
7.3.260.0110.00816.47
7.3.250.0110.00716.41
7.3.240.0140.00316.37
7.3.230.0060.01116.58
7.3.210.0000.02116.27
7.3.200.0140.00916.49
7.3.190.0080.00816.47
7.3.180.0090.00816.33
7.3.170.0060.01116.30
7.3.160.0100.00716.58
7.3.150.0070.01116.39
7.3.140.0130.00416.36
7.3.130.0000.01516.58
7.3.120.0090.00916.51
7.3.110.0090.00616.47
7.3.100.0030.01316.28
7.3.90.0030.01316.37
7.3.80.0060.00916.53
7.3.70.0060.00715.61
7.3.60.0070.00915.52
7.3.50.0090.00715.41
7.3.40.0070.00915.55
7.3.30.0070.00815.61
7.3.20.0080.00916.33
7.3.10.0060.00716.59
7.3.00.0060.00816.48
7.2.330.0070.01116.79
7.2.320.0060.01116.72
7.2.310.0090.01416.72
7.2.300.0110.00916.79
7.2.290.0030.01516.74
7.2.280.0120.00616.74
7.2.270.0100.00716.54
7.2.260.0180.00016.75
7.2.250.0040.01416.80
7.2.240.0100.00716.36
7.2.230.0000.01616.48
7.2.220.0140.00416.61
7.2.210.0040.01416.65
7.2.200.0040.01015.66
7.2.190.0020.01515.77
7.2.180.0030.01515.74
7.2.170.0080.00815.85
7.2.160.0110.00715.83
7.2.150.0090.00516.66
7.2.140.0100.00616.76
7.2.130.0070.00916.83
7.2.120.0100.00516.27
7.2.110.0050.00916.30
7.2.100.0110.00416.16
7.2.90.0080.00916.29
7.2.80.0150.00616.21
7.2.70.0080.00716.28
7.2.60.0080.00816.39
7.2.50.0130.00516.23
7.2.40.0080.00816.36
7.2.30.0060.01116.11
7.2.20.0090.00716.17
7.2.10.0080.00816.13
7.2.00.0170.00616.10
7.1.330.0100.01015.40
7.1.320.0060.01515.46
7.1.310.0100.01515.10
7.1.300.0160.00815.35
7.1.290.0110.00715.39
7.1.280.0160.00715.31
7.1.270.0150.00615.36
7.1.260.0100.00815.35
7.1.250.0080.00815.52
7.1.240.0180.00914.62
7.1.230.0260.00314.55
7.1.220.0160.00814.59
7.1.210.0160.00814.46
7.1.200.0120.00714.93
7.1.190.0150.01114.47
7.1.180.0180.01114.46
7.1.170.0250.00414.42
7.1.160.0150.00914.48
7.1.150.0160.00714.38
7.1.140.0190.00514.34
7.1.130.0120.00914.62
7.1.120.0150.00614.39
7.1.110.0120.01014.40
7.1.100.0130.00415.57
7.1.90.0200.00514.37
7.1.80.0130.01314.57
7.1.70.0140.01115.52
7.1.60.0160.01016.22
7.1.50.0170.01014.42
7.1.40.0160.01014.37
7.1.30.0140.00814.50
7.1.20.0200.00614.43
7.1.10.0170.00914.61
7.1.00.0150.02717.00
7.0.330.0130.01015.12
7.0.320.0130.00714.30
7.0.310.0160.00714.21
7.0.300.0320.00614.26
7.0.290.0100.01414.36
7.0.280.0180.00914.05
7.0.270.0160.00814.04
7.0.260.0200.00414.12
7.0.250.0130.01414.16
7.0.240.0140.00814.14
7.0.230.0220.00114.19
7.0.220.0170.00814.17
7.0.210.0120.01314.23
7.0.200.0140.00615.08
7.0.190.0160.00714.00
7.0.180.0170.00514.15
7.0.170.0330.00814.14
7.0.160.0280.00314.27
7.0.150.0130.01014.02
7.0.140.0130.00614.21
7.0.130.0120.01014.08
7.0.120.0110.01014.27
7.0.110.0120.00714.26
7.0.100.0160.03016.14
7.0.90.0150.03016.13
7.0.80.0140.02916.04
7.0.70.0120.02916.04
7.0.60.0070.03816.12
7.0.50.0140.03016.22
7.0.40.0150.02816.29
7.0.30.0120.03116.15
7.0.20.0170.03216.11
7.0.10.0100.03216.08
7.0.00.0110.03016.04
5.6.400.0140.00815.00
5.6.390.0140.00714.98
5.6.380.0150.00914.96
5.6.370.0110.01515.03
5.6.360.0150.01014.96
5.6.350.0170.00814.90
5.6.340.0120.01314.83
5.6.330.0090.01514.93
5.6.320.0090.01314.89
5.6.310.0190.00314.89
5.6.300.0110.01115.12
5.6.290.0110.01014.88
5.6.280.0150.02516.91
5.6.270.0130.00914.95
5.6.260.0130.00714.78
5.6.250.0150.02916.77
5.6.240.0120.03416.90
5.6.230.0090.03416.79
5.6.220.0110.03316.78
5.6.210.0160.03116.63
5.6.200.0140.03216.99
5.6.190.0120.03216.87
5.6.180.0150.02816.91
5.6.170.0100.03416.80
5.6.160.0120.03316.89
5.6.150.0160.03117.07
5.6.140.0120.03017.02
5.6.130.0100.03516.98
5.6.120.0100.02516.99
5.6.110.0130.03216.99
5.6.100.0080.03316.97
5.6.90.0150.03416.96
5.6.80.0090.03016.78
5.6.70.0130.02016.85
5.6.60.0170.03016.61
5.6.50.0150.02716.76
5.6.40.0160.02716.67
5.6.30.0170.02716.65
5.6.20.0100.03116.71
5.6.10.0160.02816.77
5.6.00.0130.03616.82
5.5.380.0120.03216.73
5.5.370.0130.01816.71
5.5.360.0120.03116.61
5.5.350.0100.03616.82
5.5.340.0130.03016.92
5.5.330.0130.03116.74
5.5.320.0140.03116.81
5.5.310.0060.02516.84
5.5.300.0110.03116.97
5.5.290.0100.03616.86
5.5.280.0130.03516.86
5.5.270.0120.02916.89
5.5.260.0070.02716.93
5.5.250.0120.03216.84
5.5.240.0100.03316.60
5.5.230.0160.02816.65
5.5.220.0150.03016.74
5.5.210.0120.02116.53
5.5.200.0090.03716.76
5.5.190.0140.02716.45
5.5.180.0120.02916.82
5.5.170.0110.01614.91
5.5.160.0100.03116.69
5.5.150.0150.03316.64
5.5.140.0150.03016.51
5.5.130.0150.02016.67
5.5.120.0110.03216.85
5.5.110.0130.03816.62
5.5.100.0150.03016.69
5.5.90.0140.02616.68
5.5.80.0100.03416.71
5.5.70.0150.03116.67
5.5.60.0180.02716.70
5.5.50.0140.03116.52
5.5.40.0130.03316.53
5.5.30.0190.03016.58
5.5.20.0130.03416.58
5.5.10.0160.02916.59
5.5.00.0090.02516.48
5.4.450.0060.01612.33
5.4.440.0130.00412.50
5.4.430.0120.00612.34
5.4.420.0090.00912.52
5.4.410.0080.00812.39
5.4.400.0120.00612.22
5.4.390.0130.00912.23
5.4.380.0190.00312.46
5.4.370.0090.00912.29
5.4.360.0100.01412.36
5.4.350.0120.00612.38
5.4.340.0120.00612.39
5.4.330.0090.00912.41
5.4.320.0150.00712.58
5.4.310.0140.00612.44
5.4.300.0060.01512.49
5.4.290.0070.01312.58
5.4.280.0080.01712.37
5.4.270.0180.00512.48
5.4.260.0120.00812.54
5.4.250.0070.01312.55
5.4.240.0060.01212.40
5.4.230.0210.00612.66
5.4.220.0200.00512.44
5.4.210.0140.01012.36
5.4.200.0190.00612.88
5.4.190.0070.01812.72
5.4.180.0170.00712.46
5.4.170.0110.01112.41
5.4.160.0160.00512.49
5.4.150.0100.01012.61
5.4.140.0180.00512.75
5.4.130.0150.00912.40
5.4.120.0220.00012.63
5.4.110.0100.01012.59
5.4.100.0100.01112.69
5.4.90.0070.01012.76
5.4.80.0140.00712.73
5.4.70.0040.01512.84
5.4.60.0180.00412.76
5.4.50.0180.00512.64
5.4.40.0130.00812.73
5.4.30.0180.00512.67
5.4.20.0150.00412.74
5.4.10.0170.00512.63
5.4.00.0120.00612.66
5.3.290.0150.01113.13
5.3.280.0190.00713.16
5.3.270.0260.00413.17
5.3.260.0170.01213.21
5.3.250.0230.01013.18
5.3.240.0200.01212.94
5.3.230.0140.01412.98
5.3.220.0190.00912.84
5.3.210.0150.00913.00
5.3.200.0140.01012.87
5.3.190.0170.01113.06
5.3.180.0160.01013.10
5.3.170.0160.00913.03
5.3.160.0230.00913.20
5.3.150.0140.01413.04
5.3.140.0180.01113.11
5.3.130.0100.01712.98
5.3.120.0220.00512.97
5.3.110.0130.01613.11
5.3.100.0100.01413.04
5.3.90.0120.01212.96
5.3.80.0160.00812.90
5.3.70.0130.01012.97
5.3.60.0170.00713.06
5.3.50.0150.01213.10
5.3.40.0160.01013.09
5.3.30.0230.00613.04
5.3.20.0140.00713.15
5.3.10.0170.01312.89
5.3.00.0080.01912.82
5.2.170.0070.01312.20
5.2.160.0120.00812.18
5.2.150.0130.01112.05
5.2.140.0050.01512.17
5.2.130.0160.00412.04
5.2.120.0130.00812.04
5.2.110.0090.01112.15
5.2.100.0090.00912.14
5.2.90.0210.00412.06
5.2.80.0170.00311.90
5.2.70.0080.01611.86
5.2.60.0140.00911.93
5.2.50.0190.00011.84
5.2.40.0090.00911.94
5.2.30.0100.01012.00
5.2.20.0090.00911.89
5.2.10.0060.01211.69
5.2.00.0070.01111.63
5.1.60.0130.00311.12
5.1.50.0140.00311.12
5.1.40.0100.00711.06
5.1.30.0140.00311.46
5.1.20.0110.00611.04
5.1.10.0090.00911.04
5.1.00.0100.00711.24
5.0.50.0070.00710.18
5.0.40.0110.00410.11
5.0.30.0120.00410.11
5.0.20.0130.00310.11
5.0.10.0110.00310.11
5.0.00.0030.01110.11
4.4.90.0080.00310.11
4.4.80.0080.00310.11
4.4.70.0030.00610.11
4.4.60.0070.00410.11
4.4.50.0090.00010.11
4.4.40.0000.00910.11
4.4.30.0040.00410.11
4.4.20.0060.00310.11
4.4.10.0050.00510.11
4.4.00.0110.00010.11
4.3.110.0000.01110.11
4.3.100.0040.00410.11
4.3.90.0050.00510.11
4.3.80.0090.00010.11
4.3.70.0060.00210.11
4.3.60.0040.00410.11
4.3.50.0050.00510.11
4.3.40.0030.00810.11
4.3.30.0040.00410.11
4.3.20.0040.00410.11
4.3.10.0030.00510.11
4.3.00.0000.00710.11

preferences:
73.4 ms | 403 KiB | 5 Q