3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Request { public static function process(Request $foo) { // do something with our Request } } class BadgerRequest extends Request { public static function process(BadgerRequest $foo) { if (!($foo instanceof BadgerRequest)) { throw new \InvalidArgumentException('Expecting BadgerRequest'); } // do something with our BadgerRequest } }

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.60.0100.01016.75
8.3.50.0040.01116.16
8.3.40.0070.01418.79
8.3.30.0070.00718.73
8.3.20.0070.00020.30
8.3.10.0000.00823.66
8.3.00.0040.00419.56
8.2.180.0110.00718.29
8.2.170.0110.00322.96
8.2.160.0100.00318.95
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00419.31
8.2.120.0040.00426.35
8.2.110.0050.00521.06
8.2.100.0040.00717.97
8.2.90.0030.00618.03
8.2.80.0000.00817.97
8.2.70.0070.00317.91
8.2.60.0040.00417.80
8.2.50.0080.00018.10
8.2.40.0050.00220.55
8.2.30.0050.00320.86
8.2.20.0040.00418.04
8.2.10.0050.00217.87
8.2.00.0030.00517.94
8.1.280.0100.00725.92
8.1.270.0000.00722.06
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00722.13
8.1.230.0120.00022.68
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0000.00817.22
8.1.190.0060.00317.10
8.1.180.0000.00718.10
8.1.170.0040.00418.59
8.1.160.0030.00318.96
8.1.150.0050.00220.55
8.1.140.0070.00319.45
8.1.130.0030.00318.80
8.1.120.0000.00717.36
8.1.110.0030.00517.27
8.1.100.0030.00517.34
8.1.90.0080.00017.38
8.1.80.0030.00517.37
8.1.70.0050.00317.28
8.1.60.0040.00417.36
8.1.50.0050.00317.45
8.1.40.0030.00517.28
8.1.30.0000.00717.42
8.1.20.0040.00417.59
8.1.10.0030.00617.29
8.1.00.0040.00417.36
8.0.300.0000.00719.45
8.0.290.0080.00016.63
8.0.280.0080.00018.32
8.0.270.0030.00317.07
8.0.260.0040.00416.72
8.0.250.0030.00316.93
8.0.240.0070.00016.83
8.0.230.0030.00316.81
8.0.220.0070.00016.87
8.0.210.0030.00316.79
8.0.200.0030.00316.78
8.0.190.0050.00316.89
8.0.180.0040.00416.89
8.0.170.0000.00716.76
8.0.160.0000.00716.79
8.0.150.0000.00716.66
8.0.140.0040.00416.80
8.0.130.0030.00313.26
8.0.120.0070.00016.69
8.0.110.0030.00516.79
8.0.100.0000.00716.79
8.0.90.0040.00316.82
8.0.80.0080.00816.80
8.0.70.0040.00416.81
8.0.60.0030.00616.71
8.0.50.0000.00716.95
8.0.30.0120.00616.96
8.0.20.0110.00917.40
8.0.10.0040.00416.79
8.0.00.0100.00716.56
7.4.330.0020.00215.55
7.4.320.0060.00016.45
7.4.300.0000.00716.49
7.4.290.0000.00816.38
7.4.280.0050.00316.52
7.4.270.0070.00016.31
7.4.260.0030.00716.39
7.4.250.0000.00716.39
7.4.240.0040.00416.43
7.4.230.0000.00716.37
7.4.220.0140.00316.50
7.4.210.0030.01416.48
7.4.200.0000.00716.51
7.4.160.0090.00816.35
7.4.150.0090.00917.40
7.4.140.0100.01017.86
7.4.130.0070.01116.26
7.4.120.0140.00816.26
7.4.110.0100.00716.33
7.4.100.0070.01016.42
7.4.90.0070.01116.56
7.4.80.0140.00819.39
7.4.70.0060.01416.49
7.4.60.0030.01616.25
7.4.50.0070.01016.31
7.4.40.0070.01516.32
7.4.30.0130.00316.51
7.4.00.0090.00314.79
7.3.330.0060.00013.11
7.3.320.0000.00613.26
7.3.310.0000.00716.29
7.3.300.0070.00016.20
7.3.290.0070.01116.23
7.3.280.0100.00716.25
7.3.270.0090.00917.40
7.3.260.0110.00616.31
7.3.250.0080.01316.29
7.3.240.0110.01016.39
7.3.230.0060.01116.25
7.3.210.0140.01016.49
7.3.200.0090.01216.34
7.3.190.0060.00916.35
7.3.180.0080.00816.34
7.3.170.0120.00616.25
7.3.160.0090.00716.25
7.2.330.0060.01216.34
7.2.320.0140.00316.57
7.2.310.0060.00916.36
7.2.300.0150.00416.48
7.2.290.0100.00816.47
7.2.90.0320.00514.57
7.2.80.0110.00516.27
7.2.70.0170.00614.93
7.2.60.0080.00416.77
7.2.50.0130.01016.48
7.2.40.0150.00416.52
7.2.30.0060.01016.95
7.2.20.0080.01016.67
7.2.10.0040.00916.62
7.2.00.0200.00016.74
7.1.210.0070.00415.47
7.1.200.0270.00715.37
7.1.190.0060.00915.73
7.1.180.0320.00413.52
7.1.170.0060.00915.45
7.1.160.0170.01013.93
7.1.150.0550.00315.67
7.1.140.0120.00013.61
7.1.130.0070.00815.68
7.1.120.0600.00715.67
7.1.110.0120.00415.58
7.1.100.0090.00913.57
7.1.90.2590.00415.73
7.1.80.0070.00415.49
7.1.70.0160.00513.81
7.1.60.0500.01331.87
7.1.50.0260.00633.64
7.1.40.1570.00632.10
7.1.30.1400.00333.68
7.1.20.0200.00833.70
7.1.10.0050.00515.52
7.1.00.0150.00015.32
7.0.310.0030.00815.17
7.0.300.0050.01015.05
7.0.290.0070.00715.25
7.0.280.0520.00515.29
7.0.270.0160.00413.47
7.0.260.0090.01414.99
7.0.250.0100.00715.36
7.0.240.0000.01215.18
7.0.230.0000.01114.95
7.0.220.0070.00415.24
7.0.210.0040.00813.44
7.0.200.0050.00515.25
7.0.190.0040.01215.20
7.0.180.0030.01015.35
7.0.170.0080.00815.34
7.0.160.0110.00014.98
7.0.150.0000.01315.21
7.0.140.0070.00315.24
7.0.130.0100.00315.11
7.0.120.0050.00715.19
7.0.110.0080.00415.21
7.0.100.0030.00915.30
7.0.90.0080.00515.19
7.0.80.0120.00015.14
7.0.70.0070.00715.12
7.0.60.0060.00913.42
7.0.50.0100.00713.64
7.0.40.0000.01415.24
7.0.30.0110.00015.32
7.0.20.0120.00015.22
7.0.10.0080.00514.96
7.0.00.1320.00315.05

preferences:
44.39 ms | 400 KiB | 5 Q