3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myClass{ public $strText = ""; } $mynewClass = new myClass(); $mynewClass->strText = "MyClass class has initialized !"; echo ($mynewClass->strText);

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.0030.01016.38
8.3.50.0090.00722.80
8.3.40.0090.00619.02
8.3.30.0140.00019.08
8.3.20.0040.00420.33
8.3.10.0040.00421.90
8.3.00.0080.00018.04
8.2.180.0140.00716.38
8.2.170.0090.00622.96
8.2.160.0130.00720.47
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0120.00626.16
8.2.120.0090.00021.01
8.2.110.0080.00022.08
8.2.100.0080.00417.78
8.2.90.0040.00419.17
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0040.00417.91
8.2.50.0060.00318.07
8.2.40.0000.00718.22
8.2.30.0040.00418.07
8.2.20.0050.00317.59
8.2.10.0050.00317.90
8.2.00.0040.00417.50
8.1.280.0100.01025.92
8.1.270.0000.00923.79
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0040.00423.91
8.1.230.0080.00319.16
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0050.00317.13
8.1.180.0000.00818.10
8.1.170.0040.00418.58
8.1.160.0030.00521.92
8.1.150.0000.00718.82
8.1.140.0000.00717.32
8.1.130.0040.00417.84
8.1.120.0000.00717.30
8.1.110.0040.00417.41
8.1.100.0000.00717.41
8.1.90.0070.00017.41
8.1.80.0040.00417.34
8.1.70.0000.00817.35
8.1.60.0040.00417.53
8.1.50.0070.00417.30
8.1.40.0050.00317.36
8.1.30.0000.00817.61
8.1.20.0020.00517.56
8.1.10.0040.00417.64
8.1.00.0040.00417.50
8.0.300.0000.00718.77
8.0.290.0030.00616.75
8.0.280.0040.00418.38
8.0.270.0000.00717.30
8.0.260.0000.00717.28
8.0.250.0070.00016.90
8.0.240.0070.00316.92
8.0.230.0030.00716.91
8.0.220.0070.00016.73
8.0.210.0030.00316.84
8.0.200.0030.00516.88
8.0.190.0000.00716.76
8.0.180.0000.00816.87
8.0.170.0040.00416.75
8.0.160.0000.00816.70
8.0.150.0030.00316.67
8.0.140.0040.00416.79
8.0.130.0000.00613.25
8.0.120.0000.00816.84
8.0.110.0000.00816.87
8.0.100.0000.00716.79
8.0.90.0050.00216.90
8.0.80.0090.00616.78
8.0.70.0000.00716.74
8.0.60.0000.00716.68
8.0.50.0040.00416.74
8.0.30.0110.01317.02
8.0.20.0140.00517.40
8.0.10.0070.00016.78
8.0.00.0110.01016.62
7.4.330.0000.00515.13
7.4.320.0030.00316.46
7.4.300.0030.00316.39
7.4.290.0000.00716.55
7.4.280.0000.00716.56
7.4.270.0030.00316.46
7.4.260.0030.00316.52
7.4.250.0000.00716.55
7.4.240.0030.00316.45
7.4.230.0040.00416.45
7.4.220.0110.00716.49
7.4.210.0110.00416.64
7.4.200.0000.00716.64
7.4.160.0120.00316.41
7.4.150.0110.00717.40
7.4.140.0070.01117.86
7.4.130.0150.00616.49
7.4.120.0080.01016.60
7.4.110.0150.00316.54
7.4.100.0100.01016.47
7.4.90.0100.00716.50
7.4.80.0040.01619.39
7.4.70.0070.01016.44
7.4.60.0070.01016.32
7.4.50.0000.00416.36
7.4.40.0140.00616.52
7.4.30.0060.00916.46
7.4.00.0070.00714.93
7.3.330.0000.00713.07
7.3.320.0030.00313.16
7.3.310.0070.00016.25
7.3.300.0000.00716.29
7.3.290.0070.00716.25
7.3.280.0080.00916.22
7.3.270.0100.00717.40
7.3.260.0120.00416.31
7.3.250.0110.00616.31
7.3.240.0120.00916.27
7.3.230.0140.00316.39
7.3.210.0070.01016.54
7.3.200.0170.00619.39
7.3.190.0150.00616.25
7.3.180.0090.00916.41
7.3.170.0100.00616.58
7.3.160.0070.01016.37
7.3.120.0140.00014.87
7.3.10.0070.00716.35
7.3.00.0030.01016.61
7.2.330.0110.00616.43
7.2.320.0000.01616.80
7.2.310.0100.00716.85
7.2.300.0140.01116.90
7.2.290.0100.00716.89
7.2.130.0000.01216.93
7.2.120.0000.01116.70
7.2.110.0100.00316.98
7.2.100.0070.00416.77
7.2.90.0090.00616.80
7.2.80.0060.01316.54
7.2.70.0040.01116.78
7.2.60.0020.01116.83
7.2.50.0150.00616.65
7.2.40.0030.00716.70
7.2.30.0120.00416.80
7.2.20.0090.00416.70
7.2.10.0080.00317.11
7.2.00.0060.00616.94
7.1.250.0070.01015.73
7.1.200.0040.00715.56
7.1.100.0040.00718.03
7.1.70.1320.00315.33
7.1.60.0150.01119.40
7.1.50.0090.00516.52
7.1.00.0030.07722.40
7.0.200.0850.01316.37
7.0.140.0030.07322.00
7.0.60.0030.06320.04
7.0.50.0070.03717.97
7.0.40.0070.05320.23
7.0.30.0230.08320.16
7.0.20.0300.07720.21
7.0.10.0030.05720.15
7.0.00.0030.04320.01
5.6.280.0100.06321.13
5.6.210.0070.08720.53
5.6.200.0130.08318.16
5.6.190.0170.07720.63
5.6.180.0330.04020.57
5.6.170.0170.04020.55
5.6.160.0100.04020.47
5.6.150.0100.06718.17
5.6.140.0070.05318.18
5.6.130.0100.06318.18
5.6.120.0070.03721.05
5.6.110.0030.09021.06
5.6.100.0070.07720.98
5.6.90.0030.08021.12
5.6.80.0030.04020.36
5.5.350.0330.07320.32
5.5.340.0130.05317.98
5.5.330.0070.07320.27
5.5.320.0130.08320.42
5.5.310.0200.05720.35
5.5.300.0070.04718.04
5.5.290.0030.04017.92
5.5.280.0070.04020.77
5.5.270.0000.04320.86
5.5.260.0030.06020.79
5.5.250.0070.04720.57
5.5.240.0230.06320.23
5.4.450.0730.05319.60
5.4.440.0270.07019.58
5.4.430.0100.06319.61
5.4.420.0200.05719.47
5.4.410.0370.05019.49
5.4.400.1270.06019.29
5.4.390.1100.05319.14
5.4.380.0870.05318.69
5.4.370.0830.05718.73
5.4.360.0930.06718.41
5.4.350.0800.06018.46
5.4.340.1070.05718.75
5.4.320.0040.03812.50
5.4.310.0060.03812.49
5.4.300.0060.03912.50
5.4.290.0120.04212.49
5.4.280.0080.03812.39
5.4.270.0070.04112.39
5.4.260.0070.04012.39
5.4.250.0060.03912.39
5.4.240.0080.03512.39
5.4.230.0070.03812.38
5.4.220.0100.03512.38
5.4.210.0080.03812.38
5.4.200.0060.04112.38
5.4.190.0090.04212.38
5.4.180.0080.03512.38
5.4.170.0120.03812.39
5.4.160.0070.03612.38
5.4.150.0040.03812.39
5.4.140.0070.03612.06
5.4.130.0110.03612.05
5.4.120.0080.04412.01
5.4.110.0100.03412.01
5.4.100.0040.03812.01
5.4.90.0070.03912.01
5.4.80.0080.04712.01
5.4.70.0060.03512.00
5.4.60.0050.03512.00
5.4.50.0080.03912.00
5.4.40.0080.04411.99
5.4.30.0070.04111.99
5.4.20.0090.03211.99
5.4.10.0080.03211.99
5.4.00.0050.03511.48
5.3.290.0040.04512.80
5.3.280.0070.03912.71
5.3.270.0020.04212.72
5.3.260.0070.04212.72
5.3.250.0080.04312.72
5.3.240.0010.04512.72
5.3.230.0070.03612.71
5.3.220.0040.03812.68
5.3.210.0050.03812.68
5.3.200.0030.03712.68
5.3.190.0040.03812.68
5.3.180.0040.03612.67
5.3.170.0020.04012.67
5.3.160.0070.03512.67
5.3.150.0050.03712.67
5.3.140.0060.03512.66
5.3.130.0080.03512.66
5.3.120.0060.03712.66
5.3.110.0090.04412.66
5.3.100.0070.03712.11
5.3.90.0050.04812.09
5.3.80.0060.03412.08
5.3.70.0040.03712.08
5.3.60.0040.03612.07
5.3.50.0060.04212.02
5.3.40.0070.03912.02
5.3.30.0060.03311.97
5.3.20.0060.03411.76
5.3.10.0100.03311.72
5.3.00.0060.03911.71
5.2.170.0030.0319.21
5.2.160.0050.0279.21
5.2.150.0030.0309.21
5.2.140.0040.0309.21
5.2.130.0040.0289.17
5.2.120.0020.0299.17
5.2.110.0100.0319.18
5.2.100.0060.0259.16
5.2.90.0040.0329.16
5.2.80.0030.0319.16
5.2.70.0020.0329.16
5.2.60.0030.0319.12
5.2.50.0020.0319.09
5.2.40.0040.0289.06
5.2.30.0070.0289.04
5.2.20.0070.0329.03
5.2.10.0030.0308.93
5.2.00.0080.0278.79
5.1.60.0030.0258.08
5.1.50.0040.0278.07
5.1.40.0010.0328.06
5.1.30.0060.0288.40
5.1.20.0020.0328.43
5.1.10.0060.0228.15
5.1.00.0040.0318.15
5.0.50.0040.0196.63
5.0.40.0060.0166.49
5.0.30.0040.0306.30
5.0.20.0010.0216.27
5.0.10.0020.0246.25
5.0.00.0040.0376.24
4.4.90.0020.0164.77
4.4.80.0050.0174.75
4.4.70.0000.0174.75
4.4.60.0020.0154.76
4.4.50.0040.0134.77
4.4.40.0020.0294.70
4.4.30.0050.0174.76
4.4.20.0040.0134.85
4.4.10.0020.0154.85
4.4.00.0020.0244.76
4.3.110.0030.0154.67
4.3.100.0040.0134.66
4.3.90.0020.0154.63
4.3.80.0030.0274.59
4.3.70.0000.0174.63
4.3.60.0040.0204.63
4.3.50.0050.0164.63
4.3.40.0030.0274.54
4.3.30.0030.0183.30
4.3.20.0040.0183.28
4.3.10.0050.0173.23
4.3.00.0100.01715.17

preferences:
50.18 ms | 401 KiB | 5 Q