3v4l.org

run code in 300+ PHP versions simultaneously
<?php // An example class class MyClass { public $var = "Hello World"; } /** * A test function * * First parameter must be an object of type MyClass */ function myFunction(MyClass $foo) { echo $foo->var; } // Works $myclass = new MyClass(); myFunction($myclass); // Hello World

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.01016.38
8.3.50.0100.00921.95
8.3.40.0100.01018.75
8.3.30.0000.01419.27
8.3.20.0040.00420.34
8.3.10.0050.00323.71
8.3.00.0040.00422.58
8.2.180.0130.00716.50
8.2.170.0140.00022.96
8.2.160.0130.00022.08
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00422.19
8.2.110.0090.00020.56
8.2.100.0030.01017.78
8.2.90.0000.00819.21
8.2.80.0030.00518.05
8.2.70.0040.00717.75
8.2.60.0040.00418.05
8.2.50.0000.00818.07
8.2.40.0000.00817.84
8.2.30.0050.00217.97
8.2.20.0070.00017.57
8.2.10.0040.00419.31
8.2.00.0050.00217.68
8.1.280.0060.00925.92
8.1.270.0030.00524.01
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00723.59
8.1.230.0040.00821.05
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0000.00817.40
8.1.180.0040.00418.10
8.1.170.0000.00818.40
8.1.160.0040.00421.86
8.1.150.0080.00018.57
8.1.140.0050.00317.43
8.1.130.0040.00417.70
8.1.120.0030.00517.31
8.1.110.0000.00717.28
8.1.100.0000.00717.32
8.1.90.0000.00817.30
8.1.80.0000.00717.29
8.1.70.0070.00017.32
8.1.60.0050.00517.53
8.1.50.0030.00617.57
8.1.40.0000.00717.40
8.1.30.0050.00317.59
8.1.20.0040.00417.64
8.1.10.0030.00617.61
8.1.00.0000.00717.39
8.0.300.0070.00018.77
8.0.290.0070.00017.18
8.0.280.0030.00518.46
8.0.270.0040.00417.31
8.0.260.0020.00516.93
8.0.250.0070.00017.06
8.0.240.0070.00017.02
8.0.230.0000.00716.82
8.0.220.0030.00316.82
8.0.210.0030.00316.77
8.0.200.0030.00316.83
8.0.190.0000.00716.97
8.0.180.0050.00216.88
8.0.170.0040.00416.93
8.0.160.0070.00016.76
8.0.150.0070.00016.87
8.0.140.0070.00016.91
8.0.130.0000.00513.35
8.0.120.0030.00516.89
8.0.110.0070.00016.90
8.0.100.0040.00416.97
8.0.90.0000.00816.71
8.0.80.0060.00916.82
8.0.70.0060.00316.71
8.0.60.0040.00416.77
8.0.50.0000.00716.73
8.0.30.0150.00317.05
8.0.20.0100.01217.40
8.0.10.0040.00417.12
8.0.00.0120.00516.75
7.4.330.0000.00515.06
7.4.320.0030.00316.43
7.4.300.0000.00616.43
7.4.290.0000.00616.39
7.4.280.0030.00316.61
7.4.270.0000.00816.59
7.4.260.0080.00316.49
7.4.250.0040.00416.38
7.4.240.0020.00516.62
7.4.230.0030.00316.70
7.4.220.0090.00616.54
7.4.210.0070.00816.57
7.4.200.0000.00716.30
7.4.190.0000.00716.76
7.4.160.0100.01016.37
7.4.150.0140.00317.40
7.4.140.0070.01217.86
7.4.130.0110.00616.50
7.4.120.0140.00416.52
7.4.110.0100.00616.49
7.4.100.0040.01416.46
7.4.90.0140.00316.59
7.4.80.0060.00919.37
7.4.70.0080.00816.48
7.4.60.0100.00716.32
7.4.50.0030.00316.29
7.4.40.0030.01422.77
7.4.30.0050.01116.42
7.4.00.0070.00714.80
7.3.330.0060.00013.06
7.3.320.0050.00013.09
7.3.310.0070.00016.14
7.3.300.0030.00316.11
7.3.290.0090.01316.21
7.3.280.0100.00816.24
7.3.270.0120.00617.40
7.3.260.0060.01216.50
7.3.250.0080.01116.53
7.3.240.0160.00616.54
7.3.230.0100.00716.39
7.3.210.0070.01016.54
7.3.200.0130.00319.39
7.3.190.0110.01016.24
7.3.180.0080.00816.37
7.3.170.0100.00616.30
7.3.160.0070.01016.21
7.3.120.0110.00714.81
7.3.10.0000.01216.13
7.3.00.0070.01116.27
7.2.330.0130.00616.49
7.2.320.0130.00316.37
7.2.310.0120.00616.53
7.2.300.0120.00416.74
7.2.290.0100.00716.72
7.2.130.0040.01116.78
7.2.120.0070.00716.40
7.2.110.0030.01016.78
7.2.100.0070.00716.73
7.2.90.0030.01316.51
7.2.80.0080.00016.98
7.2.70.0080.00416.61
7.2.60.0000.00816.75
7.2.50.0090.00016.46
7.2.40.0090.00416.75
7.2.30.0100.00316.32
7.2.20.0000.01016.62
7.2.10.0110.00716.53
7.2.00.0100.00718.06
7.1.250.0060.00915.26
7.1.100.0070.00718.16
7.1.70.0000.00817.17
7.1.60.0150.00919.29
7.1.50.0210.01734.69
7.1.00.0100.07022.48
7.0.200.0060.00616.67
7.0.140.0030.07321.95
7.0.60.0100.04319.79
7.0.50.0030.08317.72
7.0.40.0070.09020.03
7.0.30.0300.05020.26
7.0.20.0230.08020.10
7.0.10.0270.05020.12
7.0.00.0130.07020.05
5.6.280.0070.07021.00
5.6.210.0170.06320.44
5.6.200.0170.08018.18
5.6.190.0070.07720.50
5.6.180.0500.07320.33
5.6.170.0370.07020.56
5.6.160.0030.05320.45
5.6.150.0070.04718.22
5.6.140.0070.04718.27
5.6.130.0030.08318.21
5.6.120.0100.08020.99
5.6.110.0170.06721.14
5.6.100.0030.05720.98
5.6.90.0100.08320.98
5.6.80.0070.04720.38
5.6.70.0370.07720.42
5.5.350.0030.07320.36
5.5.340.0070.09017.98
5.5.330.0070.03720.21
5.5.320.0000.06320.32
5.5.310.0130.05720.29
5.5.300.0000.07718.03
5.5.290.0030.08717.96
5.5.280.0030.04720.80
5.5.270.0170.04320.79
5.5.260.0000.04720.86
5.5.250.0070.06320.80
5.5.240.0070.05020.20
5.4.450.0930.04019.42
5.4.440.0770.05019.70
5.4.430.0570.07719.55
5.4.420.0770.06019.38
5.4.410.0170.06718.81
5.4.400.0170.04718.87
5.4.390.0300.04018.84
5.4.380.0170.05018.79
5.4.370.0330.03318.61
5.4.360.0170.05718.80
5.4.350.0200.05318.74
5.4.340.0200.04718.77
5.4.320.0040.03912.50
5.4.310.0030.04212.50
5.4.300.0070.03612.50
5.4.290.0060.03712.50
5.4.280.0150.05312.37
5.4.270.0310.08712.37
5.4.260.0100.03712.38
5.4.250.0040.04312.37
5.4.240.0120.04112.37
5.4.230.0070.04112.36
5.4.220.0090.08212.36
5.4.210.0060.07612.37
5.4.200.0170.05812.37
5.4.190.0120.05312.36
5.4.180.0200.06812.36
5.4.170.0070.06912.37
5.4.160.0160.07412.36
5.4.150.0380.14612.36
5.4.140.0170.09512.04
5.4.130.0100.04512.03
5.4.120.0080.04111.99
5.4.110.0090.06411.98
5.4.100.0140.07211.98
5.4.90.0090.06211.99
5.4.80.0160.05411.98
5.4.70.0150.05911.98
5.4.60.0120.05111.98
5.4.50.0090.05011.98
5.4.40.0110.06311.97
5.4.30.0330.11411.96
5.4.20.0080.05411.96
5.4.10.0280.07611.96
5.4.00.0120.04711.45
5.3.290.0020.04212.80
5.3.280.0110.04912.71
5.3.270.0090.04412.72
5.3.260.0120.04912.72
5.3.250.0160.04212.72
5.3.240.0180.07012.71
5.3.230.0090.04412.71
5.3.220.0060.04712.68
5.3.210.0080.04412.68
5.3.200.0070.04212.68
5.3.190.0040.04412.67
5.3.180.0120.03612.67
5.3.170.0060.04112.67
5.3.160.0080.04212.68
5.3.150.0080.04512.68
5.3.140.0100.04012.66
5.3.130.0080.04312.66
5.3.120.0070.04312.66
5.3.110.0090.06012.66
5.3.100.0050.04212.12
5.3.90.0050.04512.08
5.3.80.0090.03812.07
5.3.70.0100.04012.07
5.3.60.0140.07112.06
5.3.50.0150.07212.00
5.3.40.0080.07512.00
5.3.30.0130.06811.95
5.3.20.0150.07211.74
5.3.10.0120.05811.70
5.3.00.0170.07511.69
5.2.170.0190.1049.19
5.2.160.0200.0669.19
5.2.150.0170.0719.19
5.2.140.0210.0669.18
5.2.130.0260.0989.15
5.2.120.0140.0829.14
5.2.110.0220.0639.15
5.2.100.0160.0729.14
5.2.90.0290.0779.14
5.2.80.0320.0839.14
5.2.70.0120.0599.14
5.2.60.0170.0749.09
5.2.50.0250.0849.07
5.2.40.0200.0869.04
5.2.30.0110.0479.02
5.2.20.0070.0389.00
5.2.10.0150.0388.91
5.2.00.0240.0918.78
5.1.60.0100.0318.06
5.1.50.0090.0448.06
5.1.40.0090.0748.05
5.1.30.0130.0498.39
5.1.20.0190.0808.41
5.1.10.0050.0528.14
5.1.00.0140.0668.14
5.0.50.0090.0316.61
5.0.40.0090.0276.48
5.0.30.0070.0416.29
5.0.20.0060.0256.25
5.0.10.0070.0396.23
5.0.00.0130.0576.22
4.4.90.0020.0464.78
4.4.80.0030.0214.75
4.4.70.0190.0864.75
4.4.60.0070.0204.75
4.4.50.0130.0294.77
4.4.40.0060.0424.70
4.4.30.0100.0424.76
4.4.20.0090.0384.84
4.4.10.0170.0454.85
4.4.00.0140.0444.75
4.3.110.0060.0244.67
4.3.100.0150.0374.67
4.3.90.0130.0454.63
4.3.80.0090.0584.58
4.3.70.0130.0334.63
4.3.60.0060.0464.63
4.3.50.0060.0254.63
4.3.40.0080.0454.54
4.3.30.0050.0353.28
4.3.20.0040.0433.26
4.3.10.0040.0343.23
4.3.00.0300.01313.64

preferences:
51.32 ms | 401 KiB | 5 Q