3v4l.org

run code in 300+ PHP versions simultaneously
<?php // An example class class MyClass { public $var = 'Hello Worldd'; } /** * 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);

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.70.0130.00616.38
8.3.60.0070.00718.28
8.3.50.0050.01117.32
8.3.40.0140.00018.84
8.3.30.0140.00018.59
8.3.20.0080.00018.69
8.3.10.0040.00420.53
8.3.00.0080.00017.49
8.2.180.0130.00916.63
8.2.170.0120.00322.96
8.2.160.0030.01022.30
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0070.00319.77
8.2.110.0110.00021.11
8.2.100.0060.00617.91
8.2.90.0040.00419.08
8.2.80.0000.00918.05
8.2.70.0000.00817.50
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0070.00018.16
8.2.30.0050.00218.01
8.2.20.0030.00517.70
8.2.10.0000.00717.48
8.2.00.0060.00317.66
8.1.280.0000.01525.92
8.1.270.0050.00524.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.48
8.1.230.0060.00620.93
8.1.220.0000.00817.75
8.1.210.0040.00418.78
8.1.200.0040.00417.23
8.1.190.0040.00417.40
8.1.180.0000.00818.10
8.1.170.0070.00018.72
8.1.160.0040.00418.75
8.1.150.0040.00418.48
8.1.140.0080.00317.26
8.1.130.0000.00717.73
8.1.120.0040.00417.39
8.1.110.0030.00517.29
8.1.100.0070.00017.30
8.1.90.0050.00217.37
8.1.80.0000.00717.38
8.1.70.0000.00717.27
8.1.60.0040.00417.56
8.1.50.0040.00417.48
8.1.40.0030.00617.54
8.1.30.0040.00417.57
8.1.20.0050.00517.60
8.1.10.0060.00317.61
8.1.00.0080.00017.44
8.0.300.0000.00719.83
8.0.290.0000.00716.62
8.0.280.0030.00318.44
8.0.270.0100.00017.31
8.0.260.0030.00316.75
8.0.250.0000.00716.99
8.0.240.0080.00017.00
8.0.230.0030.00316.87
8.0.220.0050.00216.93
8.0.210.0030.00316.93
8.0.200.0000.00916.94
8.0.190.0070.00316.82
8.0.180.0040.00416.85
8.0.170.0050.00316.91
8.0.160.0030.00317.00
8.0.150.0000.00816.89
8.0.140.0000.00816.75
8.0.130.0030.00313.20
8.0.120.0000.00916.82
8.0.110.0000.00716.76
8.0.100.0000.00716.73
8.0.90.0030.00516.76
8.0.80.0070.01016.84
8.0.70.0070.00016.83
8.0.60.0070.00016.93
8.0.50.0000.00716.77
8.0.30.0100.00916.94
8.0.20.0110.00917.12
8.0.10.0040.00417.00
8.0.00.0060.01716.73
7.4.330.0030.00314.71
7.4.320.0000.00616.39
7.4.300.0060.00016.48
7.4.290.0000.00716.60
7.4.280.0000.01016.49
7.4.270.0030.00316.39
7.4.260.0000.00713.34
7.4.250.0040.00416.55
7.4.240.0030.00316.57
7.4.230.0000.00716.39
7.4.220.0070.00916.61
7.4.210.0050.01016.57
7.4.200.0070.00016.25
7.4.190.0000.00716.75
7.4.160.0130.00316.49
7.4.150.0100.00717.07
7.4.140.0140.00417.16
7.4.130.0060.01316.55
7.4.120.0110.00716.63
7.4.110.0070.01316.41
7.4.100.0140.00616.52
7.4.90.0150.00816.39
7.4.80.0120.00418.80
7.4.70.0140.00316.41
7.4.60.0110.01016.49
7.4.50.0030.00616.35
7.4.40.0040.01121.94
7.4.30.0150.00616.71
7.4.00.0090.00615.01
7.3.330.0030.00313.11
7.3.320.0000.00813.00
7.3.310.0040.00416.23
7.3.300.0070.00016.24
7.3.290.0100.00316.26
7.3.280.0100.00616.25
7.3.270.0100.00717.07
7.3.260.0090.01018.24
7.3.250.0120.00916.26
7.3.240.0170.00416.21
7.3.230.0070.01016.39
7.3.210.0190.00416.43
7.3.200.0090.00919.39
7.3.190.0060.01216.16
7.3.180.0080.00816.48
7.3.170.0130.00316.44
7.3.160.0100.01016.22
7.3.120.0030.01314.65
7.3.110.0000.01414.71
7.3.100.0070.00714.63
7.3.90.0030.01014.89
7.3.80.0110.00414.74
7.3.70.0030.01014.57
7.3.60.0000.00814.80
7.3.50.0070.01014.77
7.3.40.0040.00814.82
7.3.30.0030.00914.64
7.3.20.0090.00616.56
7.3.10.0080.00316.65
7.3.00.0070.01016.70
7.2.330.0030.01416.34
7.2.320.0030.01316.63
7.2.310.0100.01116.56
7.2.300.0180.00416.32
7.2.290.0030.01316.57
7.2.240.0040.00815.16
7.2.230.0080.00815.23
7.2.220.0090.00614.93
7.2.210.0120.00314.68
7.2.200.0040.01114.97
7.2.190.0090.00314.81
7.2.180.0000.01314.76
7.2.170.0080.00614.93
7.2.160.0030.00714.52
7.2.150.0090.00016.80
7.2.140.0100.00316.85
7.2.130.0070.01017.06
7.2.120.0110.00316.60
7.2.110.0060.00617.11
7.2.100.0030.01216.84
7.2.90.0000.01317.04
7.2.80.0100.00016.79
7.2.70.0030.01016.86
7.2.60.0060.00916.65
7.2.50.0090.00917.11
7.2.40.0030.00716.88
7.2.30.0070.00716.76
7.2.20.0000.01416.57
7.2.10.0040.00816.70
7.2.00.0050.00818.12
7.1.330.0040.01015.77
7.1.320.0070.00715.53
7.1.310.0060.00916.01
7.1.300.0030.01015.66
7.1.290.0060.00915.54
7.1.280.0060.00615.75
7.1.270.0000.01415.76
7.1.260.0070.00415.70
7.1.250.0060.00615.79
7.1.100.0060.00617.92
7.1.70.0000.00717.22
7.1.60.0060.01919.40
7.1.50.0030.01316.98
7.1.00.0030.07722.45
7.0.200.0100.00316.82
7.0.140.0030.07022.09
7.0.120.0030.03022.16
7.0.60.0000.05319.93
7.0.50.0130.03317.87
7.0.40.0030.05720.20
7.0.30.0570.04320.23
7.0.20.0170.05020.16
7.0.10.0330.08320.30
7.0.00.0030.09320.12
5.6.280.0030.07721.11
5.6.210.0130.08020.48
5.6.200.0030.08718.16
5.6.190.0030.04720.51
5.6.180.0330.04020.52
5.6.170.0200.08320.39
5.6.160.0130.07720.44
5.6.150.0030.04018.18
5.6.140.0100.07718.23
5.6.130.0070.08018.17
5.6.120.0070.08321.04
5.6.110.0130.08020.97
5.6.100.0200.06021.09
5.6.90.0030.08721.04
5.6.80.0100.07720.49
5.6.70.2600.03720.43
5.5.350.0470.05720.47
5.5.340.0100.03018.03
5.5.330.0030.04320.25
5.5.320.0400.06020.30
5.5.310.0370.07320.39
5.5.300.0030.04318.04
5.5.290.0030.08317.98
5.5.280.0130.07720.96
5.5.270.0130.08020.86
5.5.260.0000.06020.76
5.5.250.0070.08320.69
5.5.240.0070.07720.26
5.4.450.0430.04321.80
5.4.440.0070.04321.80
5.4.430.0670.03321.82
5.4.420.0400.02721.82
5.4.410.0700.04021.82
5.4.400.0370.04021.82
5.4.390.0470.03721.82
5.4.380.0430.04021.82
5.4.370.0470.03721.82
5.4.360.0830.04021.82
5.4.350.0670.04021.82
5.4.340.0370.04321.82
5.4.320.0570.03721.82
5.4.310.0470.03721.82
5.4.300.0470.03721.82
5.4.290.0470.03321.82
5.4.280.0800.03021.82
5.4.270.0400.04021.82
5.4.260.0530.03321.82
5.4.250.0370.03321.82
5.4.240.0370.04721.82
5.4.230.0330.04321.82
5.4.220.0530.04021.82
5.4.210.0570.04721.82
5.4.200.0600.03721.82
5.4.190.0470.03721.82
5.4.180.0600.05721.82
5.4.170.0130.03321.82
5.4.160.0400.04021.82
5.4.150.0470.04322.53
5.4.140.0100.04022.53
5.4.130.0100.04022.53
5.4.120.0100.03322.53
5.4.110.0400.04722.53
5.4.100.0470.03722.53
5.4.90.0200.06022.53
5.4.80.0100.04322.53
5.4.70.0170.03722.53
5.4.60.0130.04022.53
5.4.50.0070.03722.53
5.4.40.0670.03022.53
5.4.30.0570.04022.53
5.4.20.0500.03722.53
5.4.10.0500.03022.53
5.4.00.0730.03322.52
5.3.290.0730.03021.82
5.3.280.0230.04721.82
5.3.270.0430.04321.82
5.3.260.0270.04021.82
5.3.250.0200.04021.82
5.3.240.0100.04322.53
5.3.230.0030.03722.53
5.3.220.0100.02722.53
5.3.210.0330.04022.53
5.3.200.0600.03022.53
5.3.190.0470.03722.53
5.3.180.0070.04322.53
5.3.170.0070.05322.53
5.3.160.0100.03322.53
5.3.150.0230.07722.53
5.3.140.0100.04022.53
5.3.130.0600.03722.53
5.3.120.0370.04322.53
5.3.110.0400.04022.53
5.3.100.0200.04722.52
5.3.90.0200.05322.52
5.3.80.0170.04322.52
5.3.70.0030.04022.37
5.3.60.0170.04322.37
5.3.50.0070.05322.37
5.3.40.0170.03022.37
5.3.30.0130.03322.37
5.3.20.0570.03022.37
5.3.10.0370.04022.37
5.3.00.0300.05322.37
5.2.170.0070.03722.37
5.2.160.0230.02722.37
5.2.150.0100.03722.37
5.2.140.0470.03322.37
5.2.130.0730.03022.37
5.2.120.0430.02322.37
5.2.110.0430.04722.37
5.2.100.0330.03322.37
5.2.90.0330.04322.37
5.2.80.0330.03022.37
5.2.70.0230.04022.37
5.2.60.0170.02322.37
5.2.50.0370.02322.37
5.2.40.0230.03322.36
5.2.30.0400.03022.34
5.2.20.0300.02722.21
5.2.10.0230.03022.21
5.2.00.0130.03722.21
5.1.60.0000.02022.21
5.1.50.0200.03022.21
5.1.40.0130.02022.21
5.1.30.0030.03022.21
5.1.20.0130.01722.21
5.1.10.0070.02322.21
5.1.00.0400.03022.21
5.0.50.0230.03022.21
5.0.40.0030.02722.21
5.0.30.0170.03322.18
5.0.20.0230.04022.18
5.0.10.0200.02022.18
5.0.00.0270.03722.18
4.4.90.0170.01722.37
4.4.80.0070.01322.37
4.4.70.0270.01322.21
4.4.60.0170.02022.21
4.4.50.0070.03722.21
4.4.40.0170.02322.21
4.4.30.0070.01722.21
4.4.20.0030.01322.21
4.4.10.0100.02022.21
4.4.00.0270.02322.21
4.3.110.0070.03322.20
4.3.100.0170.01022.18
4.3.90.0270.01322.18
4.3.80.0230.02322.18
4.3.70.0100.02022.18
4.3.60.0000.03022.18
4.3.50.0030.02722.18
4.3.40.0030.02322.18
4.3.30.0030.01022.18
4.3.20.0000.01322.18
4.3.10.0030.01722.18
4.3.00.0100.01722.18

preferences:
40.23 ms | 401 KiB | 5 Q