3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public function __construct() { // nothing } } function foo( stdClass $class ) { echo 'Hello, World!'; } $class = new MyClass; foo( $class );

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.00716.63
8.3.50.0070.01222.05
8.3.40.0080.00818.84
8.3.30.0090.00618.45
8.3.20.0050.00320.18
8.3.10.0070.00023.53
8.3.00.0050.00319.25
8.2.180.0070.00716.75
8.2.170.0100.00722.96
8.2.160.0130.00320.47
8.2.150.0060.00324.18
8.2.140.0000.00724.66
8.2.130.0000.00817.50
8.2.120.0050.00326.35
8.2.110.0110.00022.27
8.2.100.0040.00717.80
8.2.90.0030.00619.23
8.2.80.0050.00317.97
8.2.70.0090.00017.50
8.2.60.0060.00317.80
8.2.50.0040.00418.07
8.2.40.0050.00519.24
8.2.30.0070.00320.66
8.2.20.0050.00317.55
8.2.10.0080.00018.05
8.2.00.0080.00417.91
8.1.280.0130.00325.92
8.1.270.0060.00323.79
8.1.260.0080.00028.09
8.1.250.0050.00328.09
8.1.240.0090.00022.53
8.1.230.0040.00717.66
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0000.00717.57
8.1.180.0030.00618.10
8.1.170.0030.00518.61
8.1.160.0040.00421.99
8.1.150.0040.00418.92
8.1.140.0000.00819.57
8.1.130.0030.00317.60
8.1.120.0040.00417.31
8.1.110.0050.00317.28
8.1.100.0000.00717.27
8.1.90.0000.00717.40
8.1.80.0070.00017.40
8.1.70.0000.00717.38
8.1.60.0020.00517.63
8.1.50.0000.00817.51
8.1.40.0090.00317.47
8.1.30.0050.00317.53
8.1.20.0030.00617.42
8.1.10.0020.00517.47
8.1.00.0040.00417.51
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00718.45
8.0.270.0000.00717.18
8.0.260.0030.00317.14
8.0.250.0040.00416.95
8.0.240.0040.00416.86
8.0.230.0080.00016.98
8.0.220.0000.00716.90
8.0.210.0030.00316.94
8.0.200.0070.00016.81
8.0.190.0070.00016.98
8.0.180.0050.00316.96
8.0.170.0000.00816.90
8.0.160.0000.00716.91
8.0.150.0050.00316.82
8.0.140.0030.00316.72
8.0.130.0030.00313.35
8.0.120.0040.00416.80
8.0.110.0000.00816.90
8.0.100.0000.00716.77
8.0.90.0070.00016.89
8.0.80.0040.01116.90
8.0.70.0070.00016.72
8.0.60.0000.00716.75
8.0.50.0070.00016.82
8.0.30.0060.01216.98
8.0.20.0060.01417.40
8.0.10.0050.00216.99
8.0.00.0100.01116.70
7.4.330.0020.00216.70
7.4.320.0070.00016.37
7.4.300.0000.00716.49
7.4.290.0040.00416.54
7.4.280.0040.00416.57
7.4.270.0030.00316.42
7.4.260.0000.00716.44
7.4.250.0030.00516.57
7.4.240.0000.00716.47
7.4.230.0050.00316.47
7.4.220.0160.00316.50
7.4.210.0090.00516.58
7.4.200.0040.00416.39
7.4.160.0060.01016.42
7.4.150.0140.00417.40
7.4.140.0140.00817.86
7.4.130.0080.00816.55
7.4.120.0070.01016.61
7.4.110.0130.01316.41
7.4.100.0030.01816.34
7.4.90.0140.00716.57
7.4.80.0170.00819.39
7.4.70.0090.00816.26
7.4.60.0040.01416.48
7.4.50.0000.01816.61
7.4.40.0040.01416.56
7.4.30.0230.00416.48
7.4.00.0060.00314.93
7.3.330.0070.00013.36
7.3.320.0000.00613.23
7.3.310.0000.00716.32
7.3.300.0000.00716.38
7.3.290.0070.00016.33
7.3.280.0040.01216.35
7.3.270.0070.01117.40
7.3.260.0030.01316.61
7.3.250.0090.01216.46
7.3.240.0090.01316.37
7.3.230.0030.01316.52
7.3.210.0060.01016.47
7.3.200.0060.01316.36
7.3.190.0120.01016.47
7.3.180.0160.00016.35
7.3.170.0070.01116.35
7.3.160.0060.01016.38
7.3.10.0040.01116.71
7.3.00.0030.00916.34
7.2.330.0130.00716.62
7.2.320.0100.00716.61
7.2.310.0060.01216.63
7.2.300.0060.01216.58
7.2.290.0140.00516.49
7.2.130.0070.00716.88
7.2.120.0030.00916.95
7.2.110.0090.00316.63
7.2.100.0040.00716.70
7.2.90.0060.00916.90
7.2.80.0060.00616.80
7.2.70.0080.00316.95
7.2.60.0100.00516.81
7.2.50.0030.01216.90
7.2.40.0090.00916.83
7.2.30.0030.01017.04
7.2.20.0080.00816.80
7.2.10.0070.01016.90
7.2.00.0110.00417.82
7.1.250.0040.00715.78
7.1.200.0040.00815.77
7.1.100.0040.00717.63
7.1.70.0040.00417.13
7.1.60.0140.01019.36
7.1.50.0030.02016.89
7.1.00.0070.07722.42
7.0.200.0050.00216.89
7.0.100.0030.04319.93
7.0.90.0100.05020.13
7.0.80.0100.03320.02
7.0.70.0100.08319.91
7.0.60.0070.06719.90
7.0.50.0300.04720.33
7.0.40.0130.07320.23
7.0.30.0130.07720.15
7.0.20.0030.08720.05
7.0.10.0030.08320.12
7.0.00.0100.07019.95
5.6.280.0070.05021.13
5.6.250.0070.04320.63
5.6.240.0070.04020.50
5.6.230.0000.05020.59
5.6.220.0100.07720.50
5.6.210.0070.04020.65
5.6.200.0000.07721.02
5.6.190.0130.05721.14
5.6.180.0100.07721.08
5.6.170.0070.06020.96
5.6.160.0070.07320.93
5.6.150.0130.03721.01
5.6.140.0000.06021.08
5.6.130.0100.08020.96
5.6.120.0030.05321.13
5.6.110.0100.08321.17
5.6.100.0170.06720.93
5.6.90.0100.05720.99
5.6.80.0100.07320.41
5.6.70.0030.10020.29
5.6.60.0100.07720.45
5.6.50.0070.08020.41
5.6.40.0030.04720.33
5.6.30.0100.07720.32
5.6.20.0100.07720.30
5.6.10.0070.07020.39
5.6.00.0170.07020.43
5.5.380.0130.03320.45
5.5.370.0100.03320.45
5.5.360.0100.08720.44
5.5.350.0070.07020.49
5.5.340.0100.03720.88
5.5.330.0130.08020.93
5.5.320.0100.08020.86
5.5.310.0100.07020.92
5.5.300.0100.08320.83
5.5.290.0070.05020.79
5.5.280.0070.08720.83
5.5.270.0170.06320.89
5.5.260.0200.06720.81
5.5.250.0170.07020.61
5.5.240.0130.07020.21
5.5.230.0170.07020.21
5.5.220.0100.06020.24
5.5.210.0200.06320.14
5.5.200.0100.04320.11
5.5.190.0070.07720.26
5.5.180.0030.08720.13
5.5.160.0130.07720.08
5.5.150.0070.05720.12
5.5.140.0030.04320.22
5.5.130.0070.04320.23
5.5.120.0070.09320.21
5.5.110.0170.06720.21
5.5.100.0070.05020.15
5.5.90.0070.05020.07
5.5.80.0070.07720.04
5.5.70.0130.04019.94
5.5.60.0030.05020.20
5.5.50.0100.08020.15
5.5.40.0070.06320.03
5.5.30.0000.06720.14
5.5.20.0130.07320.15
5.5.10.0070.06320.04
5.5.00.0130.07020.10

preferences:
64.2 ms | 401 KiB | 5 Q