3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { class Bar { public $from = 'foo'; } } namespace Bazzle { use Foo\Bar; class Bar { public $from = 'bazzle'; } echo (new Bar())->from; }

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.0180.00418.43
8.3.50.0060.00918.30
8.3.40.0170.00318.67
8.3.30.0100.01018.50
8.3.20.0090.00618.88
8.3.10.0040.00421.69
8.3.00.0000.00819.54
8.2.180.0080.00818.16
8.2.170.0060.00922.96
8.2.160.0130.00022.13
8.2.150.0080.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00017.68
8.2.120.0000.00726.35
8.2.110.0060.00320.52
8.2.100.0040.00817.68
8.2.90.0040.00418.97
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0060.00317.90
8.2.50.0030.00518.07
8.2.40.0040.00422.32
8.2.30.0000.00720.67
8.2.20.0050.00217.58
8.2.10.0000.00717.81
8.2.00.0080.00017.84
8.1.280.0100.00625.92
8.1.270.0040.00423.89
8.1.260.0080.00028.09
8.1.250.0080.00028.09
8.1.240.0060.00322.14
8.1.230.0040.00817.66
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0060.00317.10
8.1.190.0050.00317.10
8.1.180.0030.00618.10
8.1.170.0000.00718.58
8.1.160.0070.00020.61
8.1.150.0040.00418.71
8.1.140.0000.01019.46
8.1.130.0030.00317.50
8.1.120.0050.00217.16
8.1.110.0000.00717.29
8.1.100.0040.00417.26
8.1.90.0040.00417.32
8.1.80.0000.00717.37
8.1.70.0040.00417.23
8.1.60.0030.00617.33
8.1.50.0080.00017.38
8.1.40.0080.00017.38
8.1.30.0080.00017.54
8.1.20.0020.00517.52
8.1.10.0030.00517.27
8.1.00.0060.00317.30
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.22
8.0.270.0040.00317.13
8.0.260.0000.00616.98
8.0.250.0030.00316.90
8.0.240.0070.00016.90
8.0.230.0030.00316.78
8.0.220.0000.00716.79
8.0.210.0070.00016.71
8.0.200.0000.00716.84
8.0.190.0050.00316.90
8.0.180.0070.00016.79
8.0.170.0070.00016.73
8.0.160.0000.00816.88
8.0.150.0040.00416.76
8.0.140.0000.00716.63
8.0.130.0000.00613.27
8.0.120.0060.00316.68
8.0.110.0000.00716.84
8.0.100.0000.00816.68
8.0.90.0070.00016.86
8.0.80.0090.00716.82
8.0.70.0000.00716.72
8.0.60.0000.00716.70
8.0.50.0040.00416.70
8.0.30.0110.00816.85
8.0.20.0070.01417.40
8.0.10.0000.00716.92
8.0.00.0070.01116.46
7.4.330.0030.00316.83
7.4.320.0000.00716.36
7.4.300.0000.00616.43
7.4.290.0000.00816.38
7.4.280.0040.00416.32
7.4.270.0070.00016.39
7.4.260.0040.00416.44
7.4.250.0040.00416.27
7.4.240.0040.00416.48
7.4.230.0000.00716.46
7.4.220.0140.01416.23
7.4.210.0090.00616.25
7.4.200.0000.00816.34
7.4.160.0100.01316.35
7.4.150.0100.00717.40
7.4.140.0130.00417.86
7.4.130.0100.00716.40
7.4.120.0100.00816.50
7.4.110.0130.00316.43
7.4.100.0080.00816.30
7.4.90.0030.01316.47
7.4.80.0090.01219.39
7.4.70.0060.01016.28
7.4.60.0130.00316.36
7.4.50.0150.00016.45
7.4.40.0060.00916.13
7.4.30.0100.00616.33
7.4.00.0090.00314.52
7.3.330.0030.00313.23
7.3.320.0020.00213.01
7.3.310.0030.00316.25
7.3.300.0040.00416.14
7.3.290.0030.00316.09
7.3.280.0080.01116.19
7.3.270.0030.01417.40
7.3.260.0050.01416.35
7.3.250.0100.01216.33
7.3.240.0090.00916.30
7.3.230.0140.00316.39
7.3.210.0120.00316.17
7.3.200.0030.01616.27
7.3.190.0040.01216.27
7.3.180.0120.00416.36
7.3.170.0090.00616.49
7.3.160.0090.01216.30
7.3.10.0060.00316.36
7.3.00.0120.00316.55
7.2.330.0130.00416.32
7.2.320.0140.00716.31
7.2.310.0160.00316.54
7.2.300.0110.00616.13
7.2.290.0120.01216.36
7.2.130.0130.00716.55
7.2.120.0100.01116.68
7.2.110.0070.01016.59
7.2.100.0030.01116.74
7.2.90.0090.01016.62
7.2.80.0100.00916.65
7.2.70.0110.00616.72
7.2.60.0070.00916.77
7.2.50.0080.01016.65
7.2.40.0120.01016.58
7.2.30.0040.01016.70
7.2.20.0070.01016.58
7.2.10.0120.00316.75
7.2.00.0060.00917.57
7.1.250.0090.00915.46
7.1.240.0150.00615.17
7.1.230.0070.01615.52
7.1.220.0200.00215.48
7.1.210.0190.00015.30
7.1.200.0070.00615.46
7.1.190.0100.00315.50
7.1.180.0120.00315.45
7.1.170.0070.00315.58
7.1.160.0030.01015.42
7.1.150.0040.01115.51
7.1.140.0130.00615.60
7.1.130.0040.00815.54
7.1.120.0080.00315.12
7.1.110.0000.01315.37
7.1.100.0000.01216.75
7.1.90.0030.01015.12
7.1.80.0080.00315.49
7.1.70.0020.00916.19
7.1.60.0050.01317.51
7.1.50.0080.01015.92
7.1.40.0140.00315.38
7.1.30.0040.00815.59
7.1.20.0060.00915.58
7.1.10.0040.00715.35
7.1.00.0060.04219.05
7.0.330.0120.00614.97
7.0.320.0030.01415.07
7.0.310.0040.00715.01
7.0.300.0000.01215.08
7.0.290.0000.01414.64
7.0.280.0100.00715.07
7.0.270.0070.00715.04
7.0.260.0100.00314.85
7.0.250.0060.00614.95
7.0.240.0030.00715.11
7.0.230.0050.00315.13
7.0.220.0000.01115.30
7.0.210.0110.00415.14
7.0.200.0090.00616.01
7.0.190.0060.00915.20
7.0.180.0080.00415.10
7.0.170.0040.00714.91
7.0.160.0070.00714.95
7.0.150.0090.00614.91
7.0.140.0070.00714.69
7.0.130.0000.01315.14
7.0.120.0070.00715.03
7.0.110.0140.00014.57
7.0.100.0100.00614.95
7.0.90.0040.00815.13
7.0.80.0250.02317.51
7.0.70.0330.03617.55
7.0.60.0350.03917.61
7.0.50.0400.04517.66
7.0.40.0090.03516.70
7.0.30.0050.04616.67
7.0.20.0120.03816.65
7.0.10.0110.04116.67
7.0.00.0060.04516.57
5.6.380.0070.00913.86
5.6.370.0040.01113.77
5.6.360.0030.00913.88
5.6.350.0060.00613.80
5.6.340.0070.00714.00
5.6.330.0040.00413.92
5.6.320.0070.00713.63
5.6.310.0060.00913.68
5.6.300.0060.00913.82
5.6.290.0070.01013.88
5.6.280.0030.04017.45
5.6.270.0030.00613.68
5.6.260.0030.01313.74
5.6.250.0070.00713.65
5.6.240.0030.00613.79
5.6.230.0070.04017.22
5.6.220.0050.02717.08
5.6.210.0120.04217.30
5.6.200.0050.04517.43
5.6.190.0110.04217.43
5.6.180.0050.04617.56
5.6.170.0090.04117.58
5.6.160.0100.02317.48
5.6.150.0070.04217.60
5.6.140.0050.04317.53
5.6.130.0010.05017.57
5.6.120.0070.04117.56
5.6.110.0090.04517.43
5.6.100.0040.04617.52
5.6.90.0060.04517.54
5.6.80.0080.04217.11
5.6.70.0050.04217.01
5.6.60.0030.02617.11
5.6.50.0070.03717.14
5.6.40.0080.04016.95
5.6.30.0070.03617.00
5.6.20.0110.03617.16
5.6.10.0110.03316.99
5.6.00.0080.04317.14
5.5.380.0000.01110.68
5.5.370.0070.04015.58
5.5.360.0060.04015.56
5.5.350.0070.03715.68
5.5.340.0080.03015.68
5.5.330.0040.03315.81
5.5.320.0070.04015.85
5.5.310.0080.02715.74
5.5.300.0050.04015.74
5.5.290.0100.04115.74
5.5.280.0090.03615.85
5.5.270.0050.03015.77
5.5.260.0080.04315.81
5.5.250.0120.03315.61
5.5.240.0060.02515.30
5.5.230.0090.02615.28
5.5.220.0100.02015.32
5.5.210.0040.02415.47
5.5.200.0050.04515.45
5.5.190.0060.02915.48
5.5.180.0090.03815.47
5.5.170.0000.01110.64
5.5.160.0030.04015.32
5.5.150.0080.02815.46
5.5.140.0150.03215.44
5.5.130.0070.02815.35
5.5.120.0090.03715.45
5.5.110.0130.03315.29
5.5.100.0080.03915.49
5.5.90.0080.03015.28
5.5.80.0020.04215.39
5.5.70.0070.04015.31
5.5.60.0060.03515.40
5.5.50.0030.04015.44
5.5.40.0090.03815.30
5.5.30.0050.02715.43
5.5.20.0100.03215.28
5.5.10.0110.04015.36
5.5.00.0080.04315.49

preferences:
56.22 ms | 401 KiB | 5 Q