3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(Foo $foo) { $foo = new Bar; echo get_class($foo); } test(new Foo); class Foo {} class Bar {}

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.0110.00716.50
8.3.60.0100.00718.43
8.3.50.0150.00421.95
8.3.40.0090.00918.59
8.3.30.0120.00318.79
8.3.20.0040.00420.09
8.3.10.0030.00521.96
8.3.00.0040.00422.44
8.2.180.0170.00716.63
8.2.170.0070.01022.96
8.2.160.0100.00320.38
8.2.150.0110.00024.18
8.2.140.0080.00024.66
8.2.130.0110.00826.16
8.2.120.0030.00519.23
8.2.110.0100.00022.12
8.2.100.0030.00917.94
8.2.90.0000.00719.23
8.2.80.0000.00818.03
8.2.70.0050.00517.38
8.2.60.0080.00017.93
8.2.50.0110.00018.07
8.2.40.0050.00318.05
8.2.30.0060.00318.12
8.2.20.0070.00017.70
8.2.10.0000.00717.70
8.2.00.0040.00417.60
8.1.280.0040.01125.92
8.1.270.0040.00421.82
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00323.91
8.1.230.0110.00019.17
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0050.00517.25
8.1.190.0080.00017.18
8.1.180.0050.00318.10
8.1.170.0000.01018.44
8.1.160.0020.00521.86
8.1.150.0070.00018.52
8.1.140.0040.00417.26
8.1.130.0040.00417.81
8.1.120.0000.00717.40
8.1.110.0000.00817.35
8.1.100.0030.00517.31
8.1.90.0000.00717.25
8.1.80.0000.00817.36
8.1.70.0030.00317.34
8.1.60.0030.00617.57
8.1.50.0030.00517.50
8.1.40.0000.00717.48
8.1.30.0030.00517.58
8.1.20.0030.00617.70
8.1.10.0050.00317.44
8.1.00.0030.00617.46
8.0.300.0000.00718.77
8.0.290.0000.00717.18
8.0.280.0030.00318.34
8.0.270.0070.00017.29
8.0.260.0000.00616.81
8.0.250.0000.00716.96
8.0.240.0040.00416.88
8.0.230.0030.00316.96
8.0.220.0000.00716.77
8.0.210.0000.00616.93
8.0.200.0060.00016.97
8.0.190.0040.00417.01
8.0.180.0030.00316.88
8.0.170.0000.00716.90
8.0.160.0000.00716.93
8.0.150.0000.00716.93
8.0.140.0040.00416.75
8.0.130.0000.00613.23
8.0.120.0000.00816.75
8.0.110.0050.00316.84
8.0.100.0000.00716.77
8.0.90.0000.00716.93
8.0.80.0060.00916.93
8.0.70.0040.00416.90
8.0.60.0040.00416.89
8.0.50.0040.00416.78
8.0.30.0090.01317.14
8.0.20.0080.01117.40
8.0.10.0060.00317.05
8.0.00.0150.00716.78
7.4.330.0070.00015.00
7.4.320.0030.00316.52
7.4.300.0000.00616.59
7.4.290.0040.00416.50
7.4.280.0030.00316.49
7.4.270.0030.00316.49
7.4.260.0000.00716.62
7.4.250.0030.00516.56
7.4.240.0000.00816.47
7.4.230.0030.00316.52
7.4.220.0100.00716.54
7.4.210.0090.00616.52
7.4.200.0070.00016.62
7.4.190.0030.00316.66
7.4.160.0040.01216.55
7.4.150.0000.01717.40
7.4.140.0150.01517.86
7.4.130.0090.01016.49
7.4.120.0070.01016.47
7.4.110.0090.01316.46
7.4.100.0100.01316.44
7.4.90.0130.00616.43
7.4.80.0120.01219.39
7.4.70.0080.00816.35
7.4.60.0130.00316.40
7.4.50.0040.00416.30
7.4.40.0090.00922.77
7.4.30.0110.00516.46
7.4.00.0110.00415.07
7.3.330.0000.00513.29
7.3.320.0000.00513.33
7.3.310.0050.00316.41
7.3.300.0040.00416.27
7.3.290.0070.00716.36
7.3.280.0070.01116.27
7.3.270.0090.00917.40
7.3.260.0070.01016.53
7.3.250.0050.01116.30
7.3.240.0100.00716.25
7.3.230.0140.00416.65
7.3.210.0130.00916.18
7.3.200.0060.00919.39
7.3.190.0110.00716.35
7.3.180.0070.00816.57
7.3.170.0110.00616.55
7.3.160.0100.00516.11
7.3.120.0100.00614.48
7.2.330.0140.00416.63
7.2.320.0100.01016.72
7.2.310.0140.00816.69
7.2.300.0080.00816.85
7.2.290.0030.01616.45
7.2.00.0000.01619.44
7.1.100.0030.00518.10
7.1.70.0050.00317.04
7.1.60.0000.02519.82
7.1.50.0140.00716.93
7.1.00.0030.07722.27
7.0.200.0150.00916.80
7.0.140.0070.07021.95
7.0.60.0100.08019.89
7.0.50.0170.07017.85
7.0.40.0100.03720.11
7.0.30.0170.04320.24
7.0.20.0230.03720.23
7.0.10.0270.06720.19
7.0.00.0030.05320.26
5.6.280.0000.09321.04
5.6.210.0200.06720.50
5.6.200.0130.04318.19
5.6.190.0070.04020.41
5.6.180.3430.04320.57
5.6.170.0230.06020.62
5.6.160.0000.04720.55
5.6.150.0070.04018.25
5.6.140.0100.07318.14
5.6.130.0070.08018.21
5.6.120.0070.07321.04
5.6.110.0000.05320.89
5.6.100.0070.04020.89
5.6.90.0000.07720.98
5.6.80.0100.06020.49
5.6.70.4300.04020.37
5.5.350.0070.08020.38
5.5.340.0100.06317.94
5.5.330.0030.07320.43
5.5.320.0230.07320.52
5.5.310.0270.03720.30
5.5.300.0100.08018.00
5.5.290.0130.07318.09
5.5.280.0070.08020.66
5.5.270.0030.07320.88
5.5.260.0070.03720.80
5.5.250.0130.06720.62
5.5.240.0030.08020.12
5.4.450.0230.04719.55
5.4.440.0170.04719.37
5.4.430.0230.07319.63
5.4.420.0230.07019.30
5.4.410.0200.05019.39
5.4.400.0300.04019.08
5.4.390.0170.04019.00
5.4.380.0230.05718.86
5.4.370.0270.03019.22
5.4.360.0270.07019.32
5.4.350.0200.05319.00
5.4.340.0170.05718.88
5.4.320.0230.05319.24
5.4.310.0270.06718.87
5.4.300.0300.05319.31
5.4.290.0300.04319.21
5.4.280.0200.08319.09
5.4.270.0230.07319.00
5.4.260.0300.06318.94
5.4.250.0170.05019.21
5.4.240.0170.05018.99
5.4.230.0300.04019.22
5.4.220.0230.03719.31
5.4.210.0230.04719.14
5.4.200.0270.04719.21
5.4.190.0200.05318.84
5.4.180.0200.05019.08
5.4.170.0270.04319.07
5.4.160.0200.05019.24
5.4.150.0230.05319.22
5.4.140.0170.05316.44
5.4.130.0130.03316.54
5.4.120.0230.02316.43
5.4.110.0170.03316.63
5.4.100.0170.03716.63
5.4.90.0230.03716.24
5.4.80.0130.03316.60
5.4.70.0100.04016.24
5.4.60.0270.03716.56
5.4.50.0130.03716.38
5.4.40.0100.04016.16
5.4.30.0200.03016.47
5.4.20.0130.04716.34
5.4.10.0070.04016.50
5.4.00.0100.03715.75
5.3.290.0300.05014.57
5.3.280.0230.06714.46
5.3.270.0200.05314.58
5.3.260.0230.05014.69
5.3.250.0200.05014.72
5.3.240.0130.03714.60
5.3.230.0230.02714.71
5.3.220.0170.03314.65
5.3.210.0170.03314.61
5.3.200.0100.04314.57
5.3.190.0170.03314.47
5.3.180.0170.03314.66
5.3.170.0130.03714.55
5.3.160.0100.04014.55
5.3.150.0100.04014.64
5.3.140.0230.02714.46
5.3.130.0100.04014.55
5.3.120.0200.04014.45
5.3.110.0170.03314.66
5.3.100.0170.03313.94
5.3.90.0300.03013.94
5.3.80.0100.03714.13
5.3.70.0130.03714.10
5.3.60.0170.03313.92
5.3.50.0200.02714.06
5.3.40.0070.04313.87
5.3.30.0230.06013.91
5.3.20.0100.03713.74
5.3.10.0200.06013.64
5.3.00.0200.06713.64
5.2.170.0170.03313.64
5.2.160.0100.03013.64
5.2.150.0130.05013.64
5.2.140.0100.03013.64
5.2.130.0170.02313.64
5.2.120.0170.02313.64
5.2.110.0130.06013.64
5.2.100.0170.05713.64
5.2.90.0230.05013.64
5.2.80.0170.05713.64
5.2.70.0130.06013.64
5.2.60.0130.04013.64
5.2.50.0130.03713.64
5.2.40.0200.05313.64
5.2.30.0170.06013.64
5.2.20.0200.05713.64
5.2.10.0230.05713.64
5.2.00.0200.03013.64
5.1.60.0230.04313.64
5.1.50.0170.03013.64
5.1.40.0170.05013.64
5.1.30.0200.03313.64
5.1.20.0170.05313.64
5.1.10.0200.03013.64
5.1.00.0130.05313.64
5.0.50.0100.03313.64
5.0.40.0200.03713.64
5.0.30.0070.05713.64
5.0.20.0100.04313.64
5.0.10.0100.03713.64
5.0.00.0100.06013.64
4.4.90.0100.02313.64
4.4.80.0100.03313.64
4.4.70.0070.02713.64
4.4.60.0100.03713.64
4.4.50.0030.04013.64
4.4.40.0100.03013.64
4.4.30.0130.03013.64
4.4.20.0100.03713.64
4.4.10.0070.03713.64
4.4.00.0070.05713.64
4.3.110.0070.03713.64
4.3.100.0130.01713.64
4.3.90.0170.03013.64
4.3.80.0100.04013.64
4.3.70.0070.03713.64
4.3.60.0130.03013.64
4.3.50.0070.03713.64
4.3.40.0100.04713.64
4.3.30.0070.03013.64
4.3.20.0030.04013.64
4.3.10.0000.03713.64
4.3.00.0070.01713.64

preferences:
90.73 ms | 401 KiB | 5 Q