3v4l.org

run code in 300+ PHP versions simultaneously
<?php // https://bugs.php.net/bug.php?id=18556 // Set language to desired language $g_lang = 'tr_TR'; putenv("LANG=$g_lang"); if (setlocale(LC_ALL, $g_lang) === false) { throw new Exception('Setting locale failed.'); } class InfoBlob { public $foo; function InfoBlob() { echo __CLASS__; $this->foo = "Foo"; } } echo ('Instantiating an infoBlob with a lowercase i '); $foobar = new infoBlob(); echo ($foobar->foo); echo (' Instantiating an InfoBlob with an uppercase I '); $fooba3r = new InfoBlob(); echo ($fooba3r->foo);

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.0140.00318.48
8.3.50.0130.00722.05
8.3.40.0100.00719.11
8.3.30.0070.00718.84
8.3.20.0040.00418.69
8.3.10.0040.00421.31
8.3.00.0050.00322.14
8.2.180.0060.00917.00
8.2.170.0100.01022.96
8.2.160.0070.01320.63
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0100.00021.25
8.2.110.0090.00020.78
8.2.100.0140.00018.16
8.2.90.0040.00419.31
8.2.80.0030.00517.97
8.2.70.0040.00417.63
8.2.60.0060.00318.05
8.2.50.0040.00818.07
8.2.40.0000.00818.47
8.2.30.0060.00319.67
8.2.20.0040.00418.01
8.2.10.0040.00417.93
8.2.00.0050.00218.00
8.1.280.0210.00025.92
8.1.270.0050.00223.99
8.1.260.0110.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00322.29
8.1.230.0090.00317.77
8.1.220.0040.00417.91
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0060.00317.66
8.1.180.0040.00818.10
8.1.170.0030.00618.72
8.1.160.0070.00319.05
8.1.150.0050.00318.84
8.1.140.0050.00217.63
8.1.130.0030.00318.09
8.1.120.0040.00417.70
8.1.110.0040.00417.63
8.1.100.0000.00817.57
8.1.90.0050.00217.71
8.1.80.0020.00517.68
8.1.70.0000.00717.64
8.1.60.0100.00317.76
8.1.50.0040.00417.60
8.1.40.0050.00317.61
8.1.30.0000.00817.79
8.1.20.0000.00817.88
8.1.10.0000.00717.86
8.1.00.0120.00617.70
8.0.300.0050.00518.77
8.0.290.0050.00517.00
8.0.280.0000.00718.63
8.0.270.0000.00717.44
8.0.260.0050.00317.03
8.0.250.0040.00417.18
8.0.240.0060.00617.23
8.0.230.0030.00317.13
8.0.220.0000.00717.25
8.0.210.0050.00317.15
8.0.200.0030.00617.21
8.0.190.0040.00417.27
8.0.180.0040.00417.09
8.0.170.0070.00017.27
8.0.160.0000.00717.09
8.0.150.0070.00017.11
8.0.140.0050.00317.18
8.0.130.0000.00613.62
8.0.120.0000.00717.06
8.0.110.0000.00716.97
8.0.100.0070.00017.18
8.0.90.0030.00516.96
8.0.80.0030.01317.17
8.0.70.0070.00017.13
8.0.60.0000.00817.18
8.0.50.0000.00817.08
8.0.30.0090.00917.29
8.0.20.0120.00817.40
8.0.10.0000.00717.22
8.0.00.0100.01216.88
7.4.330.0020.00217.14
7.4.320.0000.00616.78
7.4.300.0030.00316.65
7.4.290.0000.00716.77
7.4.280.0080.00416.71
7.4.270.0030.00316.93
7.4.260.0060.00013.60
7.4.250.0070.00016.91
7.4.240.0040.00416.90
7.4.230.0000.00716.92
7.4.220.0210.01016.84
7.4.210.0090.00816.86
7.4.200.0000.00716.93
7.4.190.0000.00717.07
7.4.160.0120.00317.09
7.4.150.0090.01017.40
7.4.140.0140.00717.86
7.4.130.0080.00916.88
7.4.120.0120.00616.82
7.4.110.0040.01416.72
7.4.100.0070.01116.87
7.4.90.0080.01516.81
7.4.80.0000.01819.39
7.4.70.0030.01216.66
7.4.60.0090.00616.72
7.4.50.0040.00416.90
7.4.40.0110.00722.77
7.4.30.0070.01016.82
7.4.00.0080.01014.82
7.3.330.0030.00313.68
7.3.320.0000.00513.82
7.3.310.0030.00316.74
7.3.300.0000.00716.73
7.3.290.0040.01116.71
7.3.280.0130.00816.64
7.3.270.0130.00317.40
7.3.260.0140.00918.24
7.3.250.0130.00616.79
7.3.240.0040.01116.87
7.3.230.0130.00316.69
7.3.210.0120.00916.89
7.3.200.0110.01219.39
7.3.190.0140.00716.65
7.3.180.0120.00916.74
7.3.170.0040.01216.86
7.3.160.0050.01116.86
7.3.120.0040.01414.94
7.3.110.0120.00614.95
7.3.100.0060.00914.99
7.3.90.0090.00614.89
7.3.80.0060.00915.08
7.3.70.0030.01014.77
7.3.60.0110.00014.95
7.3.50.0070.00714.90
7.3.40.0030.01414.76
7.3.30.0070.00614.88
7.3.20.0100.00716.81
7.3.10.0070.00416.86
7.3.00.0030.01316.53
7.2.330.0140.00416.67
7.2.320.0060.01216.88
7.2.310.0090.01417.07
7.2.300.0140.00316.78
7.2.290.0080.00816.80
7.2.250.0090.00914.96
7.2.240.0150.00615.30
7.2.230.0070.00715.20
7.2.220.0060.00915.08
7.2.210.0090.00314.95
7.2.200.0060.00914.87
7.2.190.0090.00614.99
7.2.180.0030.01014.86
7.2.170.0060.00615.07
7.2.60.0110.00316.65
7.1.330.0030.01315.78
7.1.320.0000.01215.79
7.1.310.0030.01015.74
7.1.300.0070.00315.79
7.1.290.0060.00615.75
7.1.280.0000.00915.95
7.1.270.0000.01615.86
7.1.260.0120.00315.81
7.1.200.0060.00915.88
7.1.100.0090.00618.26
7.1.70.0000.00817.32
7.1.60.0100.01419.40
7.1.50.0100.01417.07
7.1.00.0070.06322.31
7.0.200.0000.00816.95
7.0.140.0000.07722.21
7.0.60.0030.07321.72
7.0.50.0070.07722.12
7.0.40.0100.07320.05
7.0.30.0030.04320.04
7.0.20.0100.08720.08
7.0.10.0000.08320.18
7.0.00.0070.10020.18
5.6.280.0070.07020.78
5.6.210.0070.07720.73
5.6.200.0070.07721.06
5.6.190.0070.08320.99
5.6.180.0070.03721.03
5.6.170.0070.09020.91
5.6.160.0030.07320.98
5.6.150.0030.04321.02
5.6.140.0130.08720.97
5.6.130.0100.07021.02
5.6.120.0030.07020.99
5.6.110.0070.07720.89
5.6.100.0070.08321.13
5.6.90.0130.07321.00
5.6.80.0100.04320.38
5.6.70.0000.06720.39
5.6.60.0070.08020.47
5.6.50.0100.07720.43
5.6.40.0100.07320.41
5.6.30.0070.07720.29
5.6.20.0030.07320.37
5.6.10.0030.07720.50
5.6.00.0030.06720.24
5.5.350.0100.06320.41
5.5.340.0000.08020.88
5.5.330.0000.08720.86
5.5.320.0100.04020.98
5.5.310.0000.09020.75
5.5.300.0100.03720.81
5.5.290.0070.07020.99
5.5.280.0100.08020.75
5.5.270.0100.06320.84
5.5.260.0100.08020.77
5.5.250.0000.08320.78
5.5.240.0030.05720.20
5.5.230.0070.05720.25
5.5.220.0030.08020.22
5.5.210.0070.07020.15
5.5.200.0030.07320.04
5.5.190.0030.08020.17
5.5.180.0070.07720.26
5.5.160.0000.08320.13
5.5.150.0170.06720.23
5.5.140.0030.08320.24
5.5.130.0030.04020.09
5.5.120.0100.04720.15
5.5.110.0000.08720.15
5.5.100.0030.08319.87
5.5.90.0030.05320.13
5.5.80.0030.06720.14
5.5.70.0070.07720.07
5.5.60.0030.08020.04
5.5.50.0070.07320.00
5.5.40.0000.07720.11
5.5.30.0070.06020.09
5.5.20.0070.07320.09
5.5.10.0030.08319.98
5.5.00.0130.03719.99
5.4.450.0000.07019.27
5.4.440.0000.09019.24
5.4.430.0030.07019.25
5.4.420.0000.07319.24
5.4.410.0100.07719.21
5.4.400.0030.05019.08
5.4.390.0030.06019.19
5.4.380.0030.08319.22
5.4.370.0100.07318.91
5.4.360.0030.07718.91
5.4.350.0000.07319.08
5.4.340.0030.07719.04
5.4.320.0070.07719.13
5.4.310.0070.07319.17
5.4.300.0000.07719.05
5.4.290.0000.06319.18
5.4.280.0070.06719.12
5.4.270.0100.06718.93
5.4.260.0000.07719.14
5.4.250.0070.07719.07
5.4.240.0070.07719.05
5.4.230.0070.07319.07
5.4.220.0070.07319.22
5.4.210.0030.07319.04
5.4.200.0030.07019.07
5.4.190.0070.06718.90
5.4.180.0030.07719.05
5.4.170.0100.04019.15
5.4.160.0070.04019.18
5.4.150.0100.03719.00
5.4.140.0070.03716.25
5.4.130.0130.03016.51
5.4.120.0030.04016.29
5.4.110.0070.03716.48
5.4.100.0070.03316.38
5.4.90.0100.02716.49
5.4.80.0000.04716.46
5.4.70.0030.02716.55
5.4.60.0030.03316.58
5.4.50.0030.02716.41
5.4.40.0030.02716.50
5.4.30.0030.03316.43
5.4.20.0030.02716.50
5.4.10.0030.03016.43
5.4.00.0070.02315.98
5.3.290.0000.08314.67
5.3.280.0030.07714.68
5.3.270.0170.06314.60
5.3.260.0130.03014.52
5.3.250.0070.05314.69
5.3.240.0070.03714.69
5.3.230.0100.04014.64
5.3.220.0130.03014.62
5.3.210.0070.03314.58
5.3.200.0130.03314.65
5.3.190.0030.04014.53
5.3.180.0070.03714.43
5.3.170.0030.03014.67
5.3.160.0000.03014.52
5.3.150.0000.05014.53
5.3.140.0000.03014.65
5.3.130.0000.03014.61
5.3.120.0000.03714.64
5.3.110.0000.03014.51
5.3.100.0030.02714.07
5.3.90.0000.03014.09
5.3.80.0000.03014.07
5.3.70.0000.03014.09
5.3.60.0030.02714.04
5.3.50.0030.02713.96
5.3.40.0030.02713.91
5.3.30.0000.03013.87
5.3.20.0000.03013.74
5.3.10.0000.02713.70
5.3.00.0000.03013.68
5.2.170.0070.01711.00
5.2.160.0030.02011.21
5.2.150.0030.02311.17
5.2.140.0000.03011.21
5.2.130.0000.02311.15
5.2.120.0030.02011.01
5.2.110.0000.02710.96
5.2.100.0000.02711.01
5.2.90.0000.03010.95
5.2.80.0000.03311.05
5.2.70.0030.02011.16
5.2.60.0000.03011.11
5.2.50.0030.05311.11
5.2.40.0000.04011.04
5.2.30.0030.06311.08
5.2.20.0030.06010.97
5.2.10.0070.04710.91
5.2.00.0070.05310.57
5.1.60.0000.04310.51
5.1.50.0030.05010.51
5.1.40.0030.05310.51
5.1.30.0070.04310.51
5.1.20.0030.05710.51
5.1.10.0000.04010.51
5.1.00.0030.04310.51
5.0.50.0000.04310.51
5.0.40.0030.03010.51
5.0.30.0030.05710.51
5.0.20.0000.04010.51
5.0.10.0000.04010.51
5.0.00.0000.07010.51
4.4.90.0030.01010.51
4.4.80.0030.02310.51
4.4.70.0000.03010.51
4.4.60.0030.03710.51
4.4.50.0030.03310.51
4.4.40.0030.04710.51
4.4.30.0030.03010.51
4.4.20.0000.04010.51
4.4.10.0000.03010.51
4.4.00.0030.04710.51
4.3.110.0070.02710.51
4.3.100.0000.03710.51
4.3.90.0030.03310.51
4.3.80.0000.05310.51
4.3.70.0000.03010.51
4.3.60.0000.03710.51
4.3.50.0000.03710.51
4.3.40.0070.05010.51
4.3.30.0030.02710.51
4.3.20.0070.03010.51
4.3.10.0070.03310.51
4.3.00.0030.02010.51

preferences:
45.1 ms | 400 KiB | 5 Q