3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyRepo { public function find($id) { return null; } } class Foo { function bar($repository) { $result = $repository->find(100); echo get_class($result); } } $foo = new Foo(); $foo->bar(new MyRepo);

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.0190.00018.43
8.3.60.0070.00716.63
8.3.50.0110.00616.33
8.3.40.0100.01018.98
8.3.30.0040.01118.62
8.3.20.0040.00420.07
8.3.10.0040.00422.00
8.3.00.0080.00023.54
8.2.180.0110.00718.54
8.2.170.0160.00022.96
8.2.160.0170.00320.27
8.2.150.0030.00525.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00020.86
8.2.110.0060.00320.55
8.2.100.0060.00617.79
8.2.90.0050.00318.09
8.2.80.0040.00419.11
8.2.70.0040.00417.80
8.2.60.0000.00817.90
8.2.50.0060.00318.10
8.2.40.0040.00420.48
8.2.30.0000.00719.39
8.2.20.0060.00617.92
8.2.10.0040.00418.03
8.2.00.0070.00017.89
8.1.280.0140.00725.92
8.1.270.0040.00423.97
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00717.23
8.1.230.0060.00620.95
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0040.00417.22
8.1.180.0050.00318.10
8.1.170.0060.00318.62
8.1.160.0050.00318.75
8.1.150.0000.00818.53
8.1.140.0040.00417.29
8.1.130.0030.00319.05
8.1.120.0050.00317.38
8.1.110.0000.00817.35
8.1.100.0060.00317.28
8.1.90.0000.00717.34
8.1.80.0040.00417.46
8.1.70.0030.00317.39
8.1.60.0030.00517.54
8.1.50.0040.00417.52
8.1.40.0000.00817.41
8.1.30.0070.00017.66
8.1.20.0000.00817.56
8.1.10.0070.00017.59
8.1.00.0050.00517.38
8.0.300.0040.00420.12
8.0.290.0070.00016.63
8.0.280.0070.00018.36
8.0.270.0070.00017.18
8.0.260.0040.00418.44
8.0.250.0070.00016.84
8.0.240.0070.00016.92
8.0.230.0050.00216.88
8.0.220.0040.00416.90
8.0.210.0070.00016.86
8.0.200.0000.00816.83
8.0.190.0000.00816.94
8.0.180.0050.00216.80
8.0.170.0070.00016.79
8.0.160.0050.00316.93
8.0.150.0060.00316.82
8.0.140.0060.00616.74
8.0.130.0000.00613.21
8.0.120.0040.00416.87
8.0.110.0000.00716.91
8.0.100.0040.00416.75
8.0.90.0080.00016.76
8.0.80.0100.01016.84
8.0.70.0040.00416.93
8.0.60.0040.00416.93
8.0.50.0050.00316.71
8.0.30.0060.01117.00
8.0.20.0100.00917.41
8.0.10.0000.00817.00
8.0.00.0070.01417.06
7.4.330.0040.00015.55
7.4.320.0060.00016.53
7.4.300.0030.00316.48
7.4.290.0030.00316.38
7.4.280.0000.00716.63
7.4.270.0030.00316.48
7.4.260.0000.00816.47
7.4.250.0070.00016.48
7.4.240.0030.00316.57
7.4.230.0030.00316.39
7.4.220.0080.00816.56
7.4.210.0070.01116.56
7.4.200.0050.00216.38
7.4.160.0100.00516.41
7.4.150.0090.00917.40
7.4.140.0130.00717.86
7.4.130.0060.01316.62
7.4.120.0090.00916.52
7.4.110.0130.01016.67
7.4.100.0070.01016.40
7.4.90.0060.00916.54
7.4.80.0090.00919.39
7.4.70.0160.00616.50
7.4.60.0090.00616.52
7.4.50.0080.00716.42
7.4.40.0030.01216.65
7.4.30.0110.00716.38
7.4.00.0100.00714.79
7.3.330.0050.00013.19
7.3.320.0020.00313.43
7.3.310.0030.00316.18
7.3.300.0070.00016.22
7.3.290.0030.00316.36
7.3.280.0070.00816.33
7.3.270.0110.00517.40
7.3.260.0100.00716.54
7.3.250.0100.00916.37
7.3.240.0090.00816.45
7.3.230.0030.01316.58
7.3.210.0070.01016.54
7.3.200.0030.01316.56
7.3.190.0060.01216.33
7.3.180.0070.01416.33
7.3.170.0030.01316.37
7.3.160.0080.01016.42
7.3.30.0110.01414.52
7.3.20.9120.00714.70
7.3.10.8800.00314.47
7.3.00.6340.01314.46
7.2.330.0060.01616.42
7.2.320.0030.01316.48
7.2.310.0060.01016.43
7.2.300.0070.01416.76
7.2.290.0130.00316.59
7.2.160.0160.00314.89
7.2.150.9360.01015.05
7.2.140.8050.01014.92
7.2.130.6620.00315.26
7.2.120.7150.00314.81
7.2.110.6200.00014.73
7.2.100.4690.00314.87
7.2.90.3890.00315.12
7.2.80.3890.00715.18
7.2.70.3670.00715.11
7.2.60.1780.01216.16
7.2.50.2990.01915.08
7.2.40.3500.00714.98
7.2.30.2420.01314.74
7.2.20.2550.01315.06
7.2.10.1810.01014.78
7.2.00.2010.01014.89
7.1.270.9170.00713.75
7.1.260.9500.00313.45
7.1.250.5550.00713.80
7.1.240.5330.01013.94
7.1.230.5640.01014.00
7.1.220.4740.00313.73
7.1.210.4300.01413.77
7.1.200.2060.00014.70
7.1.190.4500.00313.73
7.1.180.3020.01313.84
7.1.170.2870.00313.98
7.1.160.3480.00313.94
7.1.150.2190.01914.10
7.1.140.1880.01014.08
7.1.130.1390.01714.07
7.1.120.1620.01013.82
7.1.110.1520.00613.74
7.1.100.5000.00714.89
7.1.90.3680.01015.13
7.1.80.3750.00714.95
7.1.70.2450.00214.55
7.1.60.3250.00723.55
7.1.50.3350.01123.49
7.1.40.2600.00523.05
7.1.30.3800.01023.30
7.1.20.3290.01323.20
7.1.10.4320.01214.32
7.1.00.2050.01114.48
7.0.330.7850.00713.34
7.0.320.4640.00613.32
7.0.310.4700.00013.51
7.0.300.3810.00613.67
7.0.290.3610.00613.53
7.0.280.1950.00713.33
7.0.270.2120.00613.34
7.0.260.1980.01213.56
7.0.250.1320.01313.45
7.0.240.5200.01114.59
7.0.230.3500.00714.72
7.0.220.3650.01114.55
7.0.210.3250.00714.14
7.0.200.4270.00614.26
7.0.190.4480.00914.25
7.0.180.2730.00714.06
7.0.170.3530.00814.00
7.0.160.4170.00814.10
7.0.150.2660.00714.00
7.0.140.2280.01313.90
7.0.130.2260.00714.34
7.0.120.2910.01114.27
7.0.110.2020.00814.05
7.0.100.1870.01013.90
7.0.90.2760.00814.00
7.0.80.2890.01114.00
7.0.70.2040.01014.01
7.0.60.2260.00713.87
7.0.50.2000.00714.21
7.0.40.2170.00714.07
7.0.30.2090.00714.18
7.0.20.1950.00814.05
7.0.10.2770.01513.92
7.0.00.2670.00314.06
5.6.400.0160.00814.30
5.6.390.0120.00914.08
5.6.380.0180.00714.39

preferences:
64.88 ms | 401 KiB | 5 Q