3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Symfony\Component\EventDispatcher { interface EventSubscriberInterface { public static function getSubscribedEvents(); } } namespace App\EventListener { class MyListener implements \Symfony\Component\EventDispatcher\EventSubscriberInterface { public static function getSubscribedEvents(): array { return [ 'kernel.request' => 'onKernelRequest', ]; } public function onKernelRequest(): void { // do something } } } namespace App { var_dump(EventListener\MyListener::getSubscribedEvents()); }

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.00718.15
8.3.60.0090.00918.31
8.3.50.0140.00616.55
8.3.40.0100.01018.57
8.3.30.0090.00618.51
8.3.20.0040.00422.36
8.3.10.0000.00820.21
8.3.00.0030.00523.66
8.2.190.0130.00716.58
8.2.180.0170.00318.16
8.2.170.0070.00722.96
8.2.160.0130.00720.45
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0100.00326.16
8.2.120.0040.00419.71
8.2.110.0100.00021.06
8.2.100.0130.00017.59
8.2.90.0040.00417.91
8.2.80.0000.00817.97
8.2.70.0090.00317.55
8.2.60.0000.00918.09
8.2.50.0050.00318.10
8.2.40.0070.00419.10
8.2.30.0040.00419.09
8.2.20.0000.00717.95
8.2.10.0030.00319.18
8.2.00.0050.00219.08
8.1.280.0030.01025.92
8.1.270.0040.00420.55
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0090.00322.11
8.1.230.0090.00320.89
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0040.00417.22
8.1.180.0070.00318.10
8.1.170.0040.00418.59
8.1.160.0040.00418.77
8.1.150.0040.00418.79
8.1.140.0040.00420.84
8.1.130.0000.00720.16
8.1.120.0040.00417.45
8.1.110.0040.00417.43
8.1.100.0050.00217.29
8.1.90.0000.00717.29
8.1.80.0030.00317.41
8.1.70.0030.00317.42
8.1.60.0000.00817.43
8.1.50.0030.00617.48
8.1.40.0050.00317.35
8.1.30.0040.00417.55
8.1.20.0040.00417.61
8.1.10.0000.00817.40
8.1.00.0040.00417.32
8.0.300.0040.00420.07
8.0.290.0000.00816.75
8.0.280.0040.00418.46
8.0.270.0070.00017.27
8.0.260.0060.00020.09
8.0.250.0000.00716.89
8.0.240.0000.00717.01
8.0.230.0030.00316.84
8.0.220.0030.00316.79
8.0.210.0030.00316.95
8.0.200.0090.00016.86
8.0.190.0050.00216.84
8.0.180.0030.00516.95
8.0.170.0050.00316.93
8.0.160.0030.00316.87
8.0.150.0030.00516.82
8.0.140.0070.00016.86
8.0.130.0030.00313.23
8.0.120.0000.00716.86
8.0.110.0040.00416.67
8.0.100.0050.00216.73
8.0.90.0070.00016.74
8.0.80.0090.01216.80
8.0.70.0080.00016.67
8.0.60.0050.00216.89
8.0.50.0040.00416.95
8.0.30.0110.00717.08
8.0.20.0110.00817.20
8.0.10.0000.00716.98
8.0.00.0110.00816.82
7.4.330.0000.00515.55
7.4.320.0000.00616.56
7.4.300.0000.00616.45
7.4.290.0040.00416.46
7.4.280.0000.00716.52
7.4.270.0000.00716.45
7.4.260.0000.00613.27
7.4.250.0000.00716.43
7.4.240.0000.00716.55
7.4.230.0030.00316.36
7.4.220.0000.00716.42
7.4.210.0120.00616.38
7.4.200.0070.00016.44
7.4.140.0100.01017.86
7.4.130.0100.01416.53
7.4.120.0110.00716.45
7.4.110.0110.00616.32
7.4.100.0100.00716.68
7.4.90.0150.00316.45
7.4.80.0070.01019.39
7.4.70.0040.01216.77
7.4.60.0040.01716.41
7.4.50.0040.01016.48
7.4.40.0110.00716.55
7.4.00.0040.00915.12
7.3.330.0000.00716.11
7.3.320.0030.00313.16
7.3.310.0020.00516.10
7.3.300.0030.00316.26
7.3.290.0000.00816.26
7.3.280.0070.00716.19
7.3.260.0090.01116.30
7.3.240.0120.00716.28
7.3.230.0000.01616.46
7.3.210.0130.00416.22
7.3.200.0170.00316.43
7.3.190.0080.00816.47
7.3.180.0100.00616.44
7.3.170.0100.00716.18
7.3.160.0070.01016.26
7.3.120.0070.01014.67
7.3.110.0040.01114.88
7.3.100.0000.01514.56
7.3.90.0050.00314.75
7.3.80.0030.01114.82
7.3.70.0050.00714.63
7.3.60.0050.00614.58
7.3.50.0100.00414.60
7.3.40.0060.00814.25
7.3.30.0040.00914.65
7.3.20.0510.00815.64
7.3.10.0080.00715.74
7.3.00.0020.01115.57
7.2.330.0070.01016.31
7.2.320.0100.00716.60
7.2.310.0100.01016.20
7.2.300.0100.01316.57
7.2.290.0100.00616.55
7.2.250.0130.00614.91
7.2.240.0120.00614.96
7.2.230.0090.00614.93
7.2.220.0040.01115.12
7.2.210.0060.00814.79
7.2.200.0060.00814.91
7.2.190.0060.00914.81
7.2.180.0130.00214.61
7.2.170.0020.01114.80
7.2.160.0000.01314.67
7.2.150.0120.00614.80
7.2.140.0160.00314.45
7.2.130.0160.00514.58
7.2.120.0240.00614.48
7.2.110.0170.00414.66
7.2.100.0200.01214.57
7.2.90.0120.01514.24
7.2.80.0130.00814.47
7.2.70.0170.00814.71
7.2.60.0180.01115.13
7.2.50.0220.00715.05
7.2.40.0200.00314.84
7.2.30.0140.01214.87
7.2.20.0480.00615.00
7.2.10.0150.01215.04
7.2.00.0150.00614.82
7.1.330.0090.00615.40
7.1.320.0090.00315.86
7.1.310.0080.00514.70
7.1.300.0070.00714.62
7.1.290.0100.00914.57
7.1.280.0100.00714.57
7.1.270.0070.00714.63
7.1.260.0050.01114.70
7.1.250.0100.00513.31

preferences:
31.47 ms | 401 KiB | 5 Q