3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __invoke($className) { var_dump(get_class($className)); } } (new Foo())(null);

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.40.0090.00618.98
8.3.30.0090.00619.10
8.3.20.0000.00720.39
8.3.10.0080.00023.65
8.3.00.0000.00819.26
8.2.170.0110.00322.96
8.2.160.0070.01020.43
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00721.09
8.2.110.0050.00520.55
8.2.100.0080.00418.22
8.2.90.0040.00419.09
8.2.80.0040.00417.97
8.2.70.0120.00017.36
8.2.60.0080.00017.80
8.2.50.0000.00718.07
8.2.40.0000.00718.22
8.2.30.0000.00817.86
8.2.20.0000.00717.56
8.2.10.0000.00817.92
8.2.00.0030.00517.73
8.1.270.0040.00423.96
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00021.91
8.1.230.0060.00619.16
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0090.00317.22
8.1.190.0000.00817.22
8.1.180.0000.00918.10
8.1.170.0000.00918.50
8.1.160.0000.00721.93
8.1.150.0070.00018.77
8.1.140.0100.00017.30
8.1.130.0030.00517.75
8.1.120.0070.00017.26
8.1.110.0050.00317.25
8.1.100.0060.00317.20
8.1.90.0000.00717.38
8.1.80.0000.00717.25
8.1.70.0030.00317.29
8.1.60.0080.00017.43
8.1.50.0000.00717.46
8.1.40.0040.00417.43
8.1.30.0040.00417.56
8.1.20.0000.00817.62
8.1.10.0070.00017.39
8.1.00.0000.00817.29
8.0.300.0000.00818.77
8.0.290.0070.00016.75
8.0.280.0030.00318.37
8.0.270.0030.00317.09
8.0.260.0050.00317.18
8.0.250.0070.00016.99
8.0.240.0080.00016.95
8.0.230.0000.00716.98
8.0.220.0030.00316.79
8.0.210.0070.00316.75
8.0.200.0030.00316.87
8.0.190.0030.00516.99
8.0.180.0000.00716.84
8.0.170.0040.00416.90
8.0.160.0070.00016.88
8.0.150.0000.00716.85
8.0.140.0040.00416.84
8.0.130.0000.00613.35
8.0.120.0040.00416.84
8.0.110.0000.00716.89
8.0.100.0050.00216.91
8.0.90.0080.00016.93
8.0.80.0030.01316.88
8.0.70.0000.00816.75
8.0.60.0030.00316.91
8.0.50.0080.00016.77
8.0.30.0130.00917.03
8.0.20.0130.00617.40
8.0.10.0000.00716.73
8.0.00.0090.01216.65
7.4.330.0050.00015.09
7.4.320.0030.00316.33
7.4.300.0030.00316.53
7.4.290.0030.00316.40
7.4.280.0000.00716.37
7.4.270.0030.00316.61
7.4.260.0000.00716.55
7.4.250.0040.00416.54
7.4.240.0000.00716.52
7.4.230.0030.00316.39
7.4.220.0160.01016.58
7.4.210.0070.01016.45
7.4.200.0000.00716.58
7.4.160.0060.00916.60
7.4.150.0040.01417.40
7.4.140.0080.01017.86
7.4.130.0090.00816.45
7.4.120.0100.00616.28
7.4.110.0130.00316.33
7.4.100.0090.01016.38
7.4.90.0070.01116.52
7.4.80.0070.01019.39
7.4.70.0100.00716.51
7.4.60.0000.01516.31
7.4.50.0030.00616.39
7.4.40.0120.00316.29
7.4.30.0030.01616.48
7.4.00.0030.01414.98
7.3.330.0000.00613.35
7.3.320.0080.00013.22
7.3.310.0000.00816.46
7.3.300.0060.00016.21
7.3.290.0040.01616.30
7.3.280.0090.01016.33
7.3.270.0040.01417.40
7.3.260.0090.01016.36
7.3.250.0040.01616.33
7.3.240.0070.01016.42
7.3.230.0110.00616.39
7.3.210.0050.01416.34
7.3.200.0050.01019.39
7.3.190.0050.01516.29
7.3.180.0030.01816.30
7.3.170.0120.00416.36
7.3.160.0100.00616.45
7.3.120.0000.01614.72
7.3.110.0080.00614.78
7.3.100.0110.00314.77
7.3.90.0030.01014.88
7.3.80.0040.00414.75
7.3.70.0000.01114.78
7.3.60.0030.01014.74
7.3.50.0070.00714.86
7.3.40.0000.01414.75
7.3.30.0040.01214.74
7.3.20.0060.00616.69
7.3.10.0040.00416.56
7.3.00.0120.00016.55
7.2.330.0130.00416.24
7.2.320.0070.01016.67
7.2.310.0060.01216.45
7.2.300.0090.00616.30
7.2.290.0100.00716.28
7.2.240.0080.01114.56
7.2.230.0090.00615.05
7.2.220.0000.01614.85
7.2.210.0070.01114.82
7.2.200.0070.00415.01
7.2.190.0000.01214.94
7.2.180.0070.01014.70
7.2.170.0090.00314.92
7.2.160.0030.01415.02
7.2.150.0030.01216.73
7.2.140.0090.00316.74
7.2.130.0030.01316.57
7.2.120.0040.01516.80
7.2.110.0060.00616.68
7.2.100.0110.00416.75
7.2.90.0030.01016.76
7.2.80.0110.00316.85
7.2.70.0090.00016.85
7.2.60.0060.00916.75
7.2.50.0120.00016.50
7.2.40.0040.00716.89
7.2.30.0110.00416.92
7.2.20.0070.00716.51
7.2.10.0070.00816.75
7.2.00.0110.00317.85
7.1.330.0120.00315.79
7.1.320.0070.00315.68
7.1.310.0030.00915.63
7.1.300.0080.00815.82
7.1.290.0030.00615.48
7.1.280.0000.01315.70
7.1.270.0030.00615.80
7.1.260.0030.01015.78
7.1.250.0040.01115.92
7.1.200.0030.00715.61
7.1.100.0040.00817.76
7.1.70.0000.00917.06
7.1.60.0140.01119.46
7.1.50.0060.00916.95
7.1.00.0070.07022.57
7.0.200.0060.00316.29
7.0.140.0100.06721.92
7.0.60.0200.06719.89
7.0.50.0000.04717.87
7.0.40.0070.04320.27
7.0.30.0170.05320.06
7.0.20.0300.05020.06
7.0.10.0070.07720.25
7.0.00.0100.08320.05
5.6.280.0030.07321.13
5.6.210.0030.04020.65
5.6.200.0000.04718.25
5.6.190.0130.03720.52
5.6.180.0230.05320.33
5.6.170.0230.07720.56
5.6.160.0070.08720.55
5.6.150.0070.06718.22
5.6.140.0070.07318.18
5.6.130.0070.04018.19
5.6.120.0030.04320.88
5.6.110.0030.04021.00
5.6.100.0100.08320.98
5.6.90.0100.05021.00
5.6.80.0000.04020.37
5.5.350.0070.08020.45
5.5.340.0130.07717.97
5.5.330.0100.07020.56
5.5.320.0030.05320.25
5.5.310.0370.05320.35
5.5.300.0070.08017.92
5.5.290.0070.08318.07
5.5.280.0130.06320.88
5.5.270.0170.07720.73
5.5.260.0100.07720.86
5.5.250.0030.06020.78
5.5.240.0070.07320.36
5.4.450.0200.04319.55
5.4.440.0170.04019.55
5.4.430.0070.03319.32
5.4.420.0130.03319.20
5.4.410.0070.05019.08
5.4.400.0130.03019.23
5.4.390.0370.04319.09
5.4.380.0430.04718.48
5.4.370.0330.05018.79
5.4.360.0330.06318.83
5.4.350.0400.05318.55
5.4.340.0500.04318.54
5.4.320.0050.04412.52
5.4.310.0110.05612.52
5.4.300.0100.05212.52
5.4.290.0090.05112.52
5.4.280.0040.04912.41
5.4.270.0060.06012.41
5.4.260.0060.05612.41
5.4.250.0090.04912.41
5.4.240.0080.04812.41
5.4.230.0100.04812.40
5.4.220.0100.04512.40
5.4.210.0090.04512.40
5.4.200.0050.05112.40
5.4.190.0090.03812.40
5.4.180.0090.03512.40
5.4.170.0040.04212.40
5.4.160.0040.03912.40
5.4.150.0110.04412.39
5.4.140.0060.05112.09
5.4.130.0100.04412.07
5.4.120.0110.04512.04
5.4.110.0050.05012.04
5.4.100.0080.04312.03
5.4.90.0120.04412.03
5.4.80.0060.05012.03
5.4.70.0110.04212.02
5.4.60.0090.04512.03
5.4.50.0060.04912.02
5.4.40.0070.04712.01
5.4.30.0070.04612.01
5.4.20.0100.04512.01
5.4.10.0090.04512.01
5.4.00.0090.04611.51
5.3.290.0130.04612.80
5.3.280.0080.04912.71
5.3.270.0030.04112.73
5.3.260.0080.04812.72
5.3.250.0030.04112.72
5.3.240.0040.03812.72
5.3.230.0060.03712.71
5.3.220.0070.03612.68
5.3.210.0050.04012.68
5.3.200.0050.03712.67
5.3.190.0080.03512.68
5.3.180.0040.04312.67
5.3.170.0070.04012.67
5.3.160.0120.03312.67
5.3.150.0070.03512.68
5.3.140.0040.03912.66
5.3.130.0040.04212.65
5.3.120.0070.04112.66
5.3.110.0080.03912.66
5.3.100.0070.04712.13
5.3.90.0050.05012.11
5.3.80.0070.04712.10
5.3.70.0050.03812.10
5.3.60.0090.03712.08
5.3.50.0060.03812.02
5.3.40.0030.04112.02
5.3.30.0030.04011.98
5.3.20.0060.03511.76
5.3.10.0040.03811.73
5.3.00.0080.03611.72
5.2.170.0050.0339.22
5.2.160.0060.0299.22
5.2.150.0060.0299.22
5.2.140.0040.0329.22
5.2.130.0050.0339.18
5.2.120.0050.0349.18
5.2.110.0070.0279.18
5.2.100.0090.0239.18
5.2.90.0060.0279.18
5.2.80.0060.0289.17
5.2.70.0030.0339.18
5.2.60.0050.0319.13
5.2.50.0030.0329.10
5.2.40.0060.0279.08
5.2.30.0040.0329.05
5.2.20.0040.0319.04
5.2.10.0070.0268.94
5.2.00.0050.0288.80
5.1.60.0060.0228.09
5.1.50.0030.0258.09
5.1.40.0060.0238.07
5.1.30.0060.0248.41
5.1.20.0030.0288.44
5.1.10.0050.0258.16
5.1.00.0060.0248.16
5.0.50.0040.0226.64
5.0.40.0070.0246.51
5.0.30.0050.0396.31
5.0.20.0010.0226.28
5.0.10.0020.0216.26
5.0.00.0050.0286.25
4.4.90.0010.0174.78
4.4.80.0010.0174.75
4.4.70.0020.0164.76
4.4.60.0040.0164.75
4.4.50.0010.0204.77
4.4.40.0020.0264.71
4.4.30.0030.0174.76
4.4.20.0050.0144.85
4.4.10.0040.0144.85
4.4.00.0040.0244.76
4.3.110.0040.0144.67
4.3.100.0000.0184.66
4.3.90.0030.0194.63
4.3.80.0060.0234.58
4.3.70.0050.0144.63
4.3.60.0030.0144.63
4.3.50.0040.0154.63
4.3.40.0020.0254.54
4.3.30.0030.0153.30
4.3.20.0010.0173.28
4.3.10.0010.0183.23
4.3.00.0030.01718.23

preferences:
43.56 ms | 400 KiB | 5 Q