3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { class FooClass {} } namespace Bar { $className = 'Foo\\FooClass'; $a = new $className(); }

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.00716.50
8.3.50.0120.00921.25
8.3.40.0140.00018.66
8.3.30.0040.01418.68
8.3.20.0070.00020.12
8.3.10.0070.00021.60
8.3.00.0100.00721.57
8.2.180.0090.00616.63
8.2.170.0120.00322.96
8.2.160.0100.00320.30
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0050.00321.12
8.2.120.0000.00726.35
8.2.110.0070.00420.93
8.2.100.0070.00417.90
8.2.90.0040.00419.10
8.2.80.0030.00717.97
8.2.70.0000.01017.49
8.2.60.0050.00318.04
8.2.50.0050.00518.09
8.2.40.0040.00422.13
8.2.30.0000.00719.33
8.2.20.0000.00717.50
8.2.10.0050.00217.96
8.2.00.0040.00418.10
8.1.280.0180.00425.92
8.1.270.0150.00422.14
8.1.260.0070.00028.09
8.1.250.0090.00928.09
8.1.240.0060.00322.45
8.1.230.0040.00719.13
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0030.00518.46
8.1.160.0000.00820.69
8.1.150.0030.00520.52
8.1.140.0030.00519.38
8.1.130.0080.00017.67
8.1.120.0000.00717.38
8.1.110.0050.00317.34
8.1.100.0040.00417.40
8.1.90.0070.00017.25
8.1.80.0030.00617.39
8.1.70.0030.00317.40
8.1.60.0060.00317.53
8.1.50.0060.00317.48
8.1.40.0000.00817.33
8.1.30.0000.00817.63
8.1.20.0000.00817.46
8.1.10.0060.00317.57
8.1.00.0040.00417.39
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0070.00018.39
8.0.270.0000.00717.25
8.0.260.0040.00417.18
8.0.250.0040.00416.80
8.0.240.0060.00316.84
8.0.230.0000.00716.74
8.0.220.0070.00016.85
8.0.210.0050.00316.77
8.0.200.0030.00316.78
8.0.190.0060.00316.86
8.0.180.0030.00316.73
8.0.170.0050.00316.83
8.0.160.0000.00816.93
8.0.150.0040.00416.69
8.0.140.0000.00716.80
8.0.130.0000.00513.14
8.0.120.0000.00816.69
8.0.110.0000.00716.91
8.0.100.0040.00416.69
8.0.90.0050.00216.72
8.0.80.0110.01116.83
8.0.70.0050.00316.69
8.0.60.0000.00716.65
8.0.50.0000.00716.69
8.0.30.0090.00916.86
8.0.20.0080.01117.40
8.0.10.0070.00016.97
8.0.00.0090.00916.81
7.4.330.0000.00516.81
7.4.320.0000.00616.54
7.4.300.0070.00016.42
7.4.290.0030.00316.43
7.4.280.0040.00416.49
7.4.270.0050.00216.44
7.4.260.0000.00716.32
7.4.250.0050.00216.36
7.4.240.0000.00716.45
7.4.230.0030.00316.19
7.4.220.0070.01416.38
7.4.210.0050.01316.55
7.4.200.0070.00016.55
7.4.160.0120.00316.36
7.4.150.0110.00717.40
7.4.140.0100.01017.86
7.4.130.0080.01116.48
7.4.120.0120.00716.48
7.4.110.0120.00616.40
7.4.100.0110.00716.39
7.4.90.0070.01016.41
7.4.80.0000.01619.39
7.4.70.0000.01516.51
7.4.60.0070.01016.33
7.4.50.0040.01016.23
7.4.40.0120.00616.42
7.4.30.0000.01616.50
7.4.00.0090.00614.63
7.3.330.0020.00213.21
7.3.320.0030.00313.05
7.3.310.0070.00016.14
7.3.300.0000.00716.21
7.3.290.0030.00316.19
7.3.280.0130.00616.22
7.3.270.0100.00717.40
7.3.260.0060.01616.16
7.3.250.0070.01316.34
7.3.240.0130.00616.33
7.3.230.0120.00616.39
7.3.210.0100.00716.26
7.3.200.0110.00619.39
7.3.190.0100.00716.43
7.3.180.0100.00616.27
7.3.170.0120.00916.49
7.3.160.0080.00816.62
7.2.330.0030.01516.60
7.2.320.0130.01016.30
7.2.310.0050.01116.25
7.2.300.0160.00016.54
7.2.290.0030.01316.45
7.2.60.0100.00616.87
7.2.00.0000.01219.31
7.1.200.0030.00915.61
7.1.100.0100.00717.86
7.1.70.0070.00317.02
7.1.60.0190.00619.40
7.1.50.0140.01416.84
7.1.00.0000.08022.30
7.0.200.0430.00314.53
7.0.60.0200.08021.82
7.0.50.0100.05017.85
7.0.40.0130.05720.25
7.0.30.0300.06320.13
7.0.20.0530.06720.07
7.0.10.0130.07020.12
7.0.00.0070.09020.15
5.6.280.0000.06721.09
5.6.210.0030.04720.70
5.6.200.0070.05718.12
5.6.190.0070.06720.64
5.6.180.0330.03720.61
5.6.170.0430.06320.45
5.6.160.0170.08320.46
5.6.150.0030.08318.15
5.6.140.0030.04018.28
5.6.130.0070.04018.15
5.6.120.0130.07320.97
5.6.110.0030.09020.95
5.6.100.0070.08320.99
5.6.90.0230.06721.12
5.6.80.0070.08020.37
5.5.350.0070.08020.35
5.5.340.0100.05318.02
5.5.330.0000.07020.25
5.5.320.0700.06020.35
5.5.310.0300.07020.34
5.5.300.0070.04718.03
5.5.290.0000.04318.02
5.5.280.0170.05020.88
5.5.270.0030.06720.88
5.5.260.0100.04720.73
5.5.250.0100.06720.68
5.5.240.0200.07320.27

preferences:
38.14 ms | 401 KiB | 5 Q