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) { die('Setting locale failed.'); } class InfoBlob { function InfoBlob() { $this->foo = "Foo"; } } echo ("Instantiating an infoBlob with a lowercase i\n"); $foobar = new infoBlob(); echo ("$foobar->foo\n"); echo ("Instantiating an InfoBlob with an uppercase I\n"); $foobar = new InfoBlob(); echo ("$foobar->foo\n");

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.0240.00316.63
8.3.50.0170.00917.76
8.3.40.0120.00318.85
8.3.30.0140.00018.92
8.3.20.0080.00019.02
8.3.10.0040.00419.06
8.3.00.0060.00619.50
8.2.180.0080.01216.88
8.2.170.0040.01122.96
8.2.160.0110.00421.39
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00321.00
8.2.110.0060.00321.22
8.2.100.0090.00318.16
8.2.90.0060.00319.58
8.2.80.0070.00019.53
8.2.70.0040.00817.47
8.2.60.0060.00318.05
8.2.50.0050.00518.07
8.2.40.0080.00518.53
8.2.30.0060.00618.40
8.2.20.0050.00517.81
8.2.10.0000.00717.88
8.2.00.0040.00817.95
8.1.280.0090.00625.92
8.1.270.0080.00023.99
8.1.260.0000.00926.35
8.1.250.0080.00028.09
8.1.240.0050.00522.78
8.1.230.0040.00821.22
8.1.220.0040.00418.02
8.1.210.0100.00319.04
8.1.200.0060.00317.48
8.1.190.0050.00317.55
8.1.180.0000.01118.10
8.1.170.0100.00318.82
8.1.160.0040.00419.16
8.1.150.0030.00518.88
8.1.140.0090.00017.55
8.1.130.0030.00318.17
8.1.120.0060.00617.57
8.1.110.0000.00717.54
8.1.100.0000.00717.66
8.1.90.0000.00717.61
8.1.80.0040.00417.65
8.1.70.0050.00517.56
8.1.60.0090.00417.75
8.1.50.0030.00617.54
8.1.40.0040.00417.61
8.1.30.0040.00417.77
8.1.20.0050.00217.77
8.1.10.0040.00417.83
8.1.00.0070.00717.78
8.0.300.0000.00720.27
8.0.290.0030.00616.75
8.0.280.0030.00318.68
8.0.270.0030.00317.56
8.0.260.0000.00717.04
8.0.250.0050.00517.24
8.0.240.0070.00417.30
8.0.230.0000.00717.30
8.0.220.0040.00417.14
8.0.210.0080.00017.05
8.0.200.0030.00317.32
8.0.190.0030.00417.32
8.0.180.0060.00617.13
8.0.170.0060.00317.26
8.0.160.0000.00717.29
8.0.150.0110.00017.13
8.0.140.0100.00517.09
8.0.130.0000.00613.67
8.0.120.0000.00817.22
8.0.110.0080.00317.11
8.0.100.0070.00017.15
8.0.90.0040.00417.27
8.0.80.0090.01717.24
8.0.70.0040.00417.20
8.0.60.0030.00317.06
8.0.50.0070.00317.10
8.0.30.0150.00317.25
8.0.20.0060.01217.41
8.0.10.0040.00417.16
8.0.00.0130.01417.00
7.4.330.0020.00213.11
7.4.320.0030.00316.95
7.4.300.0070.00016.69
7.4.290.0030.00716.77
7.4.280.0110.00016.88
7.4.270.0100.00016.66
7.4.260.0030.00313.58
7.4.250.0030.00616.80
7.4.240.0020.00616.80
7.4.230.0000.00716.94
7.4.220.0130.01616.66
7.4.210.0100.00816.93
7.4.200.0070.00016.91
7.4.190.0030.00316.72
7.4.160.0080.01216.89
7.4.150.0170.00616.76
7.4.140.0160.00216.83
7.4.130.0130.00716.78
7.4.120.0100.01016.84
7.4.110.0120.00616.75
7.4.100.0030.01716.87
7.4.90.0100.00716.91
7.4.80.0080.01516.87
7.4.70.0060.01317.17
7.4.60.0070.01016.63
7.4.50.0090.00016.66
7.4.40.0070.00516.64
7.4.30.0080.00816.91
7.4.00.0070.00714.69
7.3.330.0080.00313.87
7.3.320.0030.00713.69
7.3.310.0040.00416.64
7.3.300.0040.00416.65
7.3.290.0220.00016.69
7.3.280.0090.00716.73
7.3.270.0070.01016.95
7.3.260.0160.01216.75
7.3.250.0180.00916.63
7.3.240.0060.01316.68
7.3.230.0070.01416.91
7.3.210.0140.00416.88
7.3.200.0140.01019.39
7.3.190.0090.00816.92
7.3.180.0150.00016.68
7.3.170.0060.01016.98
7.3.160.0140.00616.76
7.3.120.0070.01014.85
7.2.330.0070.01516.75
7.2.320.0060.01217.02
7.2.310.0130.01016.74
7.2.300.0100.00717.16
7.2.290.0100.00617.16
7.2.60.0000.01816.71
7.2.00.0030.01019.03
7.1.200.0130.00015.93
7.1.100.0040.00818.01
7.1.70.0040.00416.86
7.1.60.0070.01719.40
7.1.50.0320.00334.80
7.1.00.0070.07322.31
7.0.200.0060.00614.98
7.0.140.0030.07321.95
7.0.120.0030.07322.16
7.0.60.0030.08720.08
7.0.50.0070.08717.80
7.0.40.0100.03720.24
7.0.30.0570.06020.13
7.0.20.0270.04020.10
7.0.10.0100.04020.15
7.0.00.0030.09020.12
5.6.210.0100.07720.73
5.6.200.0030.04018.22
5.6.190.0030.04720.39
5.6.180.0230.05320.46
5.6.170.0170.03720.45
5.6.160.0000.09020.55
5.6.150.0130.03318.28
5.6.140.0100.07718.15
5.6.130.0070.05018.18
5.6.120.0070.08721.02
5.6.110.0000.08321.12
5.6.100.0100.08321.04
5.6.90.0070.08021.10
5.6.80.0030.04020.28
5.6.70.4530.04020.34
5.5.350.0370.07020.53
5.5.340.0100.04717.99
5.5.330.0130.07720.21
5.5.320.0200.04020.20
5.5.310.0370.06720.40
5.5.300.0070.08317.94
5.5.290.0030.04018.05
5.5.280.0100.05720.85
5.5.270.0130.07020.84
5.5.260.0030.07720.68
5.5.250.0070.05720.79
5.5.240.3000.03720.13
5.4.450.0030.04719.47
5.4.440.0070.08019.33
5.4.430.0100.05019.17
5.4.420.0030.04319.30
5.4.410.0070.05019.45
5.4.400.0070.04719.09
5.4.390.0070.04719.24
5.4.380.0130.07018.86
5.4.370.0030.05019.26
5.4.360.0030.03719.10
5.4.350.0030.04018.98
5.4.340.0130.03019.08
5.4.320.0030.03719.24
5.4.310.0000.04019.15
5.4.300.0100.03018.87
5.4.290.0100.03318.87
5.4.280.0000.06319.15
5.4.270.0030.07718.92
5.4.260.0100.04718.98
5.4.250.0070.03719.11
5.4.240.0070.03318.87
5.4.230.0100.04018.92
5.4.220.0030.03718.85
5.4.210.0030.03719.00
5.4.200.0100.03318.98
5.4.190.0030.03719.23
5.4.180.0000.04018.85
5.4.170.0000.04019.09
5.4.160.0070.03319.13
5.4.150.0070.03719.00
5.4.140.0100.02716.47
5.4.130.0030.03316.54
5.4.120.0100.02716.46
5.4.110.0030.04016.33
5.4.100.0000.03716.59
5.4.90.0030.03716.61
5.4.80.0030.05016.34
5.4.70.0100.03316.49
5.4.60.0000.03716.29
5.4.50.0030.03316.71
5.4.40.0030.06316.44
5.4.30.0030.05316.45
5.4.20.0070.03316.43
5.4.10.0070.03316.48
5.4.00.0030.07316.00
5.3.290.0070.03314.68
5.3.280.0030.05014.59
5.3.270.0030.03714.53
5.3.260.0000.04014.66
5.3.250.0070.04014.63
5.3.240.0030.04314.60
5.3.230.0030.03714.75
5.3.220.0100.03714.59
5.3.210.0030.03714.59
5.3.200.0030.03714.56
5.3.190.0030.03714.62
5.3.180.0000.04014.56
5.3.170.0030.03714.61
5.3.160.0000.03714.45
5.3.150.0030.03714.56
5.3.140.0000.04714.57
5.3.130.0070.03314.57
5.3.120.0100.03014.55
5.3.110.0030.04714.46
5.3.100.0070.07714.09
5.3.90.0100.04713.91
5.3.80.0070.07014.09
5.3.70.0100.07314.02
5.3.60.0070.06014.00
5.3.50.0030.04713.93
5.3.40.0070.05313.96
5.3.30.0170.06013.98
5.3.20.0070.07013.73
5.3.10.0070.05313.70
5.3.00.0000.04013.64
5.2.170.0100.05711.20
5.2.160.0070.06311.11
5.2.150.0030.06711.16
5.2.140.0330.02711.16
5.2.130.0000.03711.20
5.2.120.0130.02311.07
5.2.110.0070.02711.14
5.2.100.0000.03711.16
5.2.90.0030.04711.11
5.2.80.0030.04311.11
5.2.70.0000.03311.14
5.2.60.0030.03711.07
5.2.50.0070.04311.02
5.2.40.0070.06011.04
5.2.30.0000.04011.12
5.2.20.0000.04010.92
5.2.10.0030.04710.92
5.2.00.0070.03710.71
5.1.60.0030.0479.91
5.1.50.0000.03310.06
5.1.40.0030.05310.04
5.1.30.0130.05010.35
5.1.20.0030.03710.27
5.1.10.0070.04710.04
5.1.00.0030.05010.11
5.0.50.0070.0338.55
5.0.40.0000.0208.32
5.0.30.0000.0408.25
5.0.20.0030.0338.15
5.0.10.0000.0208.32
5.0.00.0000.0438.12
4.4.90.0000.0307.68
4.4.80.0000.0377.68
4.4.70.0000.0377.68
4.4.60.0030.0377.68
4.4.50.0030.0377.68
4.4.40.0070.0507.68
4.4.30.0030.0137.68
4.4.20.0000.0377.68
4.4.10.0000.0407.68
4.4.00.0000.0577.68
4.3.110.0000.0177.68
4.3.100.0030.0337.68
4.3.90.0030.0177.68
4.3.80.0000.0337.68
4.3.70.0030.0337.68
4.3.60.0030.0237.68
4.3.50.0000.0207.68
4.3.40.0000.0277.68
4.3.30.0000.0177.68
4.3.20.0000.0177.68
4.3.10.0000.0307.68
4.3.00.0030.0237.68

preferences:
39.9 ms | 401 KiB | 5 Q