3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fn = function() { throw new Exception('test'); }; try { $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.0150.00018.43
8.3.60.0110.00416.88
8.3.50.0110.00721.13
8.3.40.0150.00018.63
8.3.30.0140.00318.79
8.3.20.0070.00020.24
8.3.10.0080.00023.66
8.3.00.0070.00021.77
8.2.180.0070.00716.63
8.2.170.0090.00622.96
8.2.160.0100.00320.45
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0060.00320.69
8.2.120.0050.00326.35
8.2.110.0030.00621.12
8.2.100.0110.00017.93
8.2.90.0000.00919.22
8.2.80.0040.00417.97
8.2.70.0060.00317.61
8.2.60.0070.00418.04
8.2.50.0060.00318.09
8.2.40.0090.00022.33
8.2.30.0040.00419.47
8.2.20.0050.00217.69
8.2.10.0040.00418.13
8.2.00.0000.00818.13
8.1.280.0100.00325.92
8.1.270.0070.00022.14
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00622.34
8.1.230.0100.00019.01
8.1.220.0040.00417.78
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0000.00817.38
8.1.180.0060.00318.10
8.1.170.0030.00618.64
8.1.160.0000.00720.62
8.1.150.0080.00019.09
8.1.140.0040.00419.46
8.1.130.0030.00317.67
8.1.120.0000.00717.39
8.1.110.0070.00017.45
8.1.100.0040.00417.44
8.1.90.0000.00717.50
8.1.80.0000.00717.36
8.1.70.0040.00417.45
8.1.60.0030.00617.48
8.1.50.0030.00517.53
8.1.40.0050.00217.55
8.1.30.0060.00317.70
8.1.20.0000.00717.59
8.1.10.0040.00417.46
8.1.00.0050.00317.57
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0040.00418.45
8.0.270.0000.00717.26
8.0.260.0030.00317.16
8.0.250.0000.00716.96
8.0.240.0040.00317.02
8.0.230.0000.00716.91
8.0.220.0050.00216.89
8.0.210.0000.00716.86
8.0.200.0000.00817.01
8.0.190.0030.00717.06
8.0.180.0040.00416.98
8.0.170.0000.00816.80
8.0.160.0040.00416.95
8.0.150.0050.00316.88
8.0.140.0060.00316.90
8.0.130.0030.00313.39
8.0.120.0040.00416.96
8.0.110.0030.00516.95
8.0.100.0000.00716.96
8.0.90.0000.00717.01
8.0.80.0130.00716.99
8.0.70.0000.00816.77
8.0.60.0050.00316.77
8.0.50.0040.00416.84
8.0.30.0130.00617.29
8.0.20.0100.01017.40
8.0.10.0000.00717.09
8.0.00.0080.00916.75
7.4.330.0050.00016.72
7.4.320.0000.00616.65
7.4.300.0000.00816.53
7.4.290.0030.00416.61
7.4.280.0040.00416.55
7.4.270.0070.00016.50
7.4.260.0040.00416.61
7.4.250.0000.00716.61
7.4.240.0070.00016.59
7.4.230.0000.00716.71
7.4.220.0090.00916.46
7.4.210.0040.01416.57
7.4.200.0040.00416.67
7.4.160.0060.01016.77
7.4.150.0100.00717.40
7.4.140.0130.00517.86
7.4.130.0060.01216.63
7.4.120.0080.01316.53
7.4.110.0110.00716.53
7.4.100.0060.01216.56
7.4.90.0110.00616.59
7.4.80.0060.01719.39
7.4.70.0100.00716.54
7.4.60.0090.00616.52
7.4.50.0070.01016.55
7.4.40.0060.01116.66
7.4.30.0030.01416.62
7.4.00.0030.01314.97
7.3.330.0030.00313.33
7.3.320.0030.00313.19
7.3.310.0070.00016.46
7.3.300.0030.00316.37
7.3.290.0120.00716.40
7.3.280.0080.01116.38
7.3.270.0060.01217.40
7.3.260.0070.01016.60
7.3.250.0090.00916.44
7.3.240.0050.01316.29
7.3.230.0110.00716.39
7.3.210.0120.00616.39
7.3.200.0160.00319.39
7.3.190.0100.00716.30
7.3.180.0090.00616.63
7.3.170.0110.01116.56
7.3.160.0090.00616.27
7.3.120.0040.01214.88
7.3.110.0070.01014.51
7.3.100.0110.00414.98
7.3.90.0040.00815.06
7.3.80.0090.00614.96
7.3.70.0040.00714.87
7.3.60.0040.00714.88
7.3.50.0110.00314.64
7.3.40.0030.01014.73
7.3.30.0030.00914.86
7.3.20.0100.00716.82
7.3.10.0060.00816.68
7.3.00.0030.01016.69
7.2.330.0070.01116.70
7.2.320.0160.00416.64
7.2.310.0160.00016.73
7.2.300.0060.01216.44
7.2.290.0030.01316.75
7.2.240.0070.01014.90
7.2.230.0040.01114.88
7.2.220.0000.01015.00
7.2.210.0090.00614.87
7.2.200.0090.00614.98
7.2.190.0090.00614.97
7.2.180.0030.01015.11
7.2.170.0100.00314.82
7.2.160.0030.00915.01
7.2.150.0090.00616.89
7.2.140.0060.00616.98
7.2.130.0000.01316.82
7.2.120.0040.01117.04
7.2.110.0070.01016.98
7.2.100.0120.00316.78
7.2.90.0030.00916.87
7.2.80.0100.00016.72
7.2.70.0000.01417.06
7.2.60.0080.00716.87
7.2.50.0040.00816.85
7.2.40.0060.00916.93
7.2.30.0040.00816.56
7.2.20.0030.01017.00
7.2.10.0100.00316.67
7.2.00.0040.00817.98
7.1.330.0020.01215.54
7.1.320.0000.01415.99
7.1.310.0000.00815.98
7.1.300.0000.01515.65
7.1.290.0060.00615.77
7.1.280.0060.00615.66
7.1.270.0030.00715.72
7.1.260.0110.00715.69
7.1.250.0090.00915.70
7.1.200.0150.00415.89
7.1.100.0040.01118.03
7.1.70.0000.00817.19
7.1.60.0100.01719.40
7.1.50.0080.00816.79
7.1.00.0030.07322.48
7.0.200.0450.00714.54
7.0.60.0200.06321.65
7.0.50.0070.03717.84
7.0.40.0200.06719.96
7.0.30.0200.05320.24
7.0.20.0170.08320.10
7.0.10.0100.08720.14
7.0.00.0070.09020.29
5.6.280.0070.06720.91
5.6.210.0070.08020.71
5.6.200.0030.08318.18
5.6.190.0030.04320.50
5.6.180.0170.04320.57
5.6.170.0270.07720.55
5.6.160.0130.03720.55
5.6.150.0030.04018.19
5.6.140.0030.04018.19
5.6.130.0070.05018.12
5.6.120.0100.05321.12
5.6.110.0100.07321.03
5.6.100.0030.04021.01
5.6.90.0070.06320.88
5.6.80.0070.05320.42
5.5.350.0000.08720.43
5.5.340.0030.04017.98
5.5.330.0100.08020.34
5.5.320.0470.04320.42
5.5.310.0200.07320.30
5.5.300.0000.08717.95
5.5.290.0130.07017.98
5.5.280.0130.06720.88
5.5.270.0100.08020.87
5.5.260.0130.06020.97
5.5.250.0100.08320.80
5.5.240.0200.03720.25

preferences:
61.81 ms | 401 KiB | 5 Q