3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fn() { throw new Exception('test'); } try { $fn = function() { fn(); }; $fn(); } catch (Exception $e) { foreach ($e->getTrace() as $frame) { $r = new ReflectionFunction($frame['function']); echo($r->isClosure()); } }

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.0120.00916.88
8.3.60.0130.00716.50
8.3.50.0110.00721.19
8.3.40.0100.00718.68
8.3.30.0090.00618.80
8.3.20.0070.00020.16
8.3.10.0080.00021.73
8.3.00.0040.00421.85
8.2.180.0070.01416.75
8.2.170.0100.01022.96
8.2.160.0130.00420.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00418.84
8.2.120.0040.00426.35
8.2.110.0090.00020.35
8.2.100.0040.00717.48
8.2.90.0060.00317.38
8.2.80.0000.00817.97
8.2.70.0040.00417.91
8.2.60.0050.00317.68
8.2.50.0000.00818.10
8.2.40.0030.00520.29
8.2.30.0000.00719.13
8.2.20.0000.00717.69
8.2.10.0000.00717.96
8.2.00.0040.00417.89
8.1.280.0110.00725.92
8.1.270.0000.00822.02
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0080.00023.92
8.1.230.0040.00819.21
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0060.00317.10
8.1.180.0040.00418.10
8.1.170.0030.00518.59
8.1.160.0030.00520.61
8.1.150.0070.00018.92
8.1.140.0040.00419.36
8.1.130.0030.00317.54
8.1.120.0040.00417.31
8.1.110.0040.00417.21
8.1.100.0000.00717.28
8.1.90.0040.00417.35
8.1.80.0040.00417.34
8.1.70.0000.00717.36
8.1.60.0090.00017.34
8.1.50.0000.00817.34
8.1.40.0080.00017.31
8.1.30.0000.00817.46
8.1.20.0000.00817.51
8.1.10.0040.00417.34
8.1.00.0040.00417.34
8.0.300.0040.00419.78
8.0.290.0000.00916.75
8.0.280.0070.00018.41
8.0.270.0000.00717.18
8.0.260.0030.00317.09
8.0.250.0040.00416.97
8.0.240.0030.00316.83
8.0.230.0050.00316.98
8.0.220.0030.00316.75
8.0.210.0050.00216.78
8.0.200.0060.00316.85
8.0.190.0000.00816.88
8.0.180.0040.00416.82
8.0.170.0030.00616.89
8.0.160.0040.00416.87
8.0.150.0040.00416.76
8.0.140.0050.00316.73
8.0.130.0000.00613.39
8.0.120.0000.00716.87
8.0.110.0040.00416.77
8.0.100.0040.00416.89
8.0.90.0000.00716.85
8.0.80.0110.00916.86
8.0.70.0050.00216.80
8.0.60.0030.00516.86
8.0.50.0050.00316.86
8.0.30.0120.00517.04
8.0.20.0140.00617.40
8.0.10.0020.00516.75
8.0.00.0120.00516.61
7.4.330.0000.00516.91
7.4.320.0030.00316.39
7.4.300.0070.00016.20
7.4.290.0050.00216.40
7.4.280.0000.00716.24
7.4.270.0040.00416.29
7.4.260.0070.00016.38
7.4.250.0000.00816.41
7.4.240.0000.00616.49
7.4.230.0030.00316.32
7.4.220.0070.01316.32
7.4.210.0160.00316.34
7.4.200.0030.00316.18
7.4.160.0120.00316.37
7.4.150.0180.00617.40
7.4.140.0030.01417.86
7.4.130.0110.00716.34
7.4.120.0110.00616.33
7.4.110.0130.00316.38
7.4.100.0120.00616.33
7.4.90.0100.00716.38
7.4.80.0060.01519.39
7.4.70.0100.00616.41
7.4.60.0180.00016.19
7.4.50.0090.00615.95
7.4.40.0060.01216.34
7.4.30.0060.01116.26
7.4.10.0100.00714.63
7.4.00.0080.00814.81
7.3.330.0000.00613.38
7.3.320.0000.00613.44
7.3.310.0000.00716.36
7.3.300.0070.00016.23
7.3.290.0100.00716.38
7.3.280.0120.00716.38
7.3.270.0070.01117.40
7.3.260.0070.01016.30
7.3.250.0090.01116.39
7.3.240.0100.00816.38
7.3.230.0060.01116.55
7.3.210.0130.00316.59
7.3.200.0090.01219.39
7.3.190.0070.01016.53
7.3.180.0090.00616.31
7.3.170.0030.01316.61
7.3.160.0100.00516.33
7.3.130.0060.01214.79
7.3.120.0060.01014.91
7.3.110.0090.00714.78
7.3.100.0070.00914.73
7.3.90.0040.01014.83
7.3.80.0040.00914.86
7.3.70.0100.00314.86
7.3.60.0030.01114.82
7.3.50.0030.01014.86
7.3.40.0090.00414.68
7.3.30.0080.00614.78
7.3.20.0020.00916.64
7.3.10.0110.00416.66
7.3.00.0070.00716.57
7.2.330.0130.01316.52
7.2.320.0140.01116.82
7.2.310.0110.01116.84
7.2.300.0070.01016.83
7.2.290.0100.00716.89
7.2.260.0110.00414.87
7.2.250.0090.01014.97
7.2.240.0050.01015.15
7.2.230.0060.00815.21
7.2.220.0070.00615.16
7.2.210.0040.00915.08
7.2.200.0080.00915.05
7.2.190.0050.00815.11
7.2.180.0070.00814.99
7.2.170.0040.00914.86
7.2.160.0070.00914.98
7.2.150.0070.00816.94
7.2.140.0090.00816.93
7.2.130.0020.01216.84
7.2.120.0060.00916.98
7.2.110.0040.01016.92
7.2.100.0050.00816.90
7.2.90.0100.00517.08
7.2.80.0080.00616.87
7.2.70.0050.01116.71
7.2.60.0020.01216.85
7.2.50.0050.00816.94
7.2.40.0030.01116.86
7.2.30.0050.01116.80
7.2.20.0090.00516.88
7.2.10.0110.00316.77
7.2.00.0070.00717.65
7.1.330.0030.01015.64
7.1.320.0050.00715.72
7.1.310.0030.01215.77
7.1.300.0060.00715.70
7.1.290.0030.01115.64
7.1.280.0040.01015.78
7.1.270.0050.00815.74
7.1.260.0070.00715.83
7.1.250.0080.00715.72
7.1.240.0060.00315.60
7.1.230.0070.00715.77
7.1.220.0090.00615.59
7.1.210.0070.00715.74
7.1.200.0030.00815.68
7.1.190.0060.00615.84
7.1.180.0070.00715.46
7.1.170.0030.00615.87
7.1.160.0040.01115.49
7.1.150.0050.00515.69
7.1.140.0100.00715.82
7.1.130.0030.01415.58
7.1.120.0060.00915.81
7.1.110.0030.00715.79
7.1.100.0050.00716.99
7.1.90.0060.00615.47
7.1.80.0060.00615.39
7.1.70.0000.00916.19
7.1.60.0130.00717.58
7.1.50.0080.00716.34
7.1.40.0000.00915.54
7.1.30.0070.00715.68
7.1.20.0100.00315.68
7.1.10.0040.00815.67
7.1.00.0050.04119.06
7.0.330.0100.00315.14
7.0.320.0040.01115.46
7.0.310.0030.01115.28
7.0.300.0030.01215.37
7.0.290.0040.01115.34
7.0.280.0040.00815.35
7.0.270.0000.01415.46
7.0.260.0040.00715.37
7.0.250.0060.00315.55
7.0.240.0080.00415.43
7.0.230.0030.00615.43
7.0.220.0000.00915.11
7.0.210.0030.01315.27
7.0.200.0180.00514.87
7.0.190.0030.00515.43
7.0.180.0000.01415.40
7.0.170.0060.00615.18
7.0.160.0000.01415.38
7.0.150.0070.00715.44
7.0.140.0030.00915.16
7.0.130.0040.00815.32
7.0.120.0070.00715.31
7.0.110.0070.01015.22
7.0.100.0000.00915.36
7.0.90.0030.00615.33
7.0.80.0030.00715.09
7.0.70.0030.00915.18
7.0.60.0080.04618.41
7.0.50.0040.02416.60
7.0.40.0080.04416.63
7.0.30.0190.03816.75
7.0.20.0170.03416.80
7.0.10.0040.03916.86
7.0.00.0050.03216.72
5.6.400.0000.01414.63
5.6.390.0000.01514.65
5.6.380.0030.00914.14
5.6.370.0100.00614.58
5.6.360.0040.01114.34
5.6.350.0070.00314.39
5.6.340.0030.01014.26
5.6.330.0040.01114.65
5.6.320.0000.01414.37
5.6.310.0040.01114.36
5.6.300.0070.00713.99
5.6.290.0100.00014.40
5.6.280.0020.03717.84
5.6.270.0060.00614.54
5.6.260.0070.01014.39
5.6.250.0090.00014.80
5.6.240.0030.00614.31
5.6.230.0060.00314.48
5.6.220.0060.00614.47
5.6.210.0090.04017.49
5.6.200.0050.04416.21
5.6.190.0070.02317.59
5.6.180.0110.02617.60
5.6.170.0130.03017.40
5.6.160.0070.04517.54
5.6.150.0020.02416.30
5.6.140.0060.04616.25
5.6.130.0070.04116.16
5.6.120.0110.01817.69
5.6.110.0070.04617.71
5.6.100.0030.02517.71
5.6.90.0070.04917.56
5.6.80.0030.02917.35
5.6.70.0070.00714.34
5.6.60.0120.00014.46
5.6.50.0040.01114.29
5.6.40.0040.00814.29
5.6.30.0100.00314.37
5.6.20.0000.01414.34
5.6.10.0060.00914.34
5.6.00.0040.00714.37
5.5.380.0080.00614.41
5.5.370.0030.00914.54
5.5.360.0030.01214.49
5.5.350.0070.05817.22
5.5.340.0040.02316.16
5.5.330.0090.02517.41
5.5.320.0410.03317.47
5.5.310.0110.02617.16
5.5.300.0050.02816.13
5.5.290.0030.04516.11
5.5.280.0070.03317.65
5.5.270.0070.04517.53
5.5.260.0130.04017.55
5.5.250.0020.04117.31
5.5.240.0150.03317.18
5.5.230.0100.00313.93
5.5.220.0000.01614.11
5.5.210.0060.00314.40
5.5.200.0030.00614.30
5.5.190.0040.00414.21
5.5.180.0070.00314.30
5.5.170.0060.01014.30
5.5.160.0040.01114.20
5.5.150.0060.01014.35
5.5.140.0090.00614.38
5.5.130.0090.00614.38
5.5.120.0030.01014.58
5.5.110.0060.00914.18
5.5.100.0030.00814.25
5.5.90.0100.00713.98
5.5.80.0060.00914.20
5.5.70.0030.01014.39
5.5.60.0040.01114.30
5.5.50.0100.00314.36
5.5.40.0120.00314.35
5.5.30.0000.01014.42
5.5.20.0070.00713.98
5.5.10.0060.00914.27
5.5.00.0060.00614.36

preferences:
46.41 ms | 401 KiB | 5 Q