3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hello = (object) ['test' => 1]; test($hello); function test($hello){ $hello->test = 2; } var_dump( $hello );

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.0150.00018.11
8.3.60.0110.00718.55
8.3.50.0100.00516.54
8.3.40.0080.00818.68
8.3.30.0100.01018.48
8.3.20.0070.00021.76
8.3.10.0070.00023.61
8.3.00.0070.00023.57
8.2.190.0110.01116.63
8.2.180.0080.00818.45
8.2.170.0090.00622.96
8.2.160.0110.00420.41
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00019.25
8.2.120.0040.00426.35
8.2.110.0060.00322.20
8.2.100.0070.00417.72
8.2.90.0000.00817.60
8.2.80.0040.00418.98
8.2.70.0040.00417.90
8.2.60.0050.00317.50
8.2.50.0040.00418.16
8.2.40.0000.00820.39
8.2.30.0050.00219.30
8.2.20.0000.00717.87
8.2.10.0040.00417.73
8.2.00.0050.00218.10
8.1.280.0070.01025.92
8.1.270.0020.00523.87
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0100.00023.98
8.1.230.0070.00320.78
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0080.00017.35
8.1.190.0030.00817.13
8.1.180.0040.00418.10
8.1.170.0040.00418.42
8.1.160.0000.00818.81
8.1.150.0040.00420.32
8.1.140.0050.00317.70
8.1.130.0060.00318.92
8.1.120.0040.00417.30
8.1.110.0000.00717.39
8.1.100.0040.00417.29
8.1.90.0040.00417.46
8.1.80.0030.00617.29
8.1.70.0000.00717.31
8.1.60.0030.00617.57
8.1.50.0050.00317.43
8.1.40.0040.00417.49
8.1.30.0040.00417.67
8.1.20.0030.00617.71
8.1.10.0000.00817.32
8.1.00.0030.00617.37
8.0.300.0040.00420.16
8.0.290.0040.00416.75
8.0.280.0000.00718.49
8.0.270.0070.00017.20
8.0.260.0000.00716.84
8.0.250.0080.00016.99
8.0.240.0040.00416.97
8.0.230.0080.00016.96
8.0.220.0000.00716.80
8.0.210.0000.00716.94
8.0.200.0060.00016.97
8.0.190.0040.00416.93
8.0.180.0000.00716.96
8.0.170.0040.00416.97
8.0.160.0000.00716.79
8.0.150.0000.00716.79
8.0.140.0040.00416.86
8.0.130.0030.00313.34
8.0.120.0040.00416.87
8.0.110.0070.00016.93
8.0.100.0030.00617.00
8.0.90.0000.00816.79
8.0.80.0030.01416.79
8.0.70.0000.00816.72
8.0.60.0040.00416.85
8.0.50.0000.00716.92
8.0.30.0080.01117.02
8.0.20.0080.01217.40
8.0.10.0000.00816.91
8.0.00.0080.01016.67
7.4.330.0000.00615.55
7.4.320.0060.00016.45
7.4.300.0000.00616.44
7.4.290.0040.00416.52
7.4.280.0000.00816.49
7.4.270.0030.00316.65
7.4.260.0030.00316.51
7.4.250.0040.00416.55
7.4.240.0050.00316.58
7.4.230.0000.00716.49
7.4.220.0060.00316.47
7.4.210.0090.00616.47
7.4.200.0050.00316.38
7.4.160.0060.01016.38
7.4.140.0140.00517.86
7.4.130.0100.00716.35
7.4.120.0110.00816.40
7.4.110.0150.00416.52
7.4.100.0060.01416.46
7.4.90.0130.00316.62
7.4.80.0100.01019.39
7.4.70.0150.00316.52
7.4.60.0110.00416.45
7.4.50.0100.00616.42
7.4.40.0140.00716.39
7.4.00.0120.00014.79
7.3.330.0000.00613.13
7.3.320.0030.00213.33
7.3.310.0030.00316.20
7.3.300.0030.00316.29
7.3.290.0060.01016.25
7.3.280.0090.00716.30
7.3.260.0110.00716.48
7.3.250.0100.00716.42
7.3.240.0120.00516.27
7.3.230.0150.00016.38
7.3.210.0100.01316.64
7.3.200.0160.00316.35
7.3.190.0160.00016.25
7.3.180.0040.01216.23
7.3.170.0130.00616.32
7.3.160.0090.00816.50
7.2.330.0070.01016.64
7.2.320.0080.00816.59
7.2.310.0060.01216.28
7.2.300.0130.00616.66
7.2.290.0100.01016.63
7.2.60.0060.00916.80
7.2.30.0100.01318.08
7.2.20.0130.01517.59
7.2.10.0500.01017.91
7.2.00.0110.01117.93
7.1.200.0070.00315.75
7.1.150.0160.01216.89
7.1.140.0150.01017.01
7.1.130.0140.01016.88
7.1.120.0140.01216.27
7.1.110.0130.01115.73
7.1.100.0100.01215.95
7.1.90.0130.00916.14
7.1.80.0120.01216.11
7.1.70.0130.00815.20
7.1.60.0340.01133.27
7.1.50.0270.01333.07
7.1.40.0490.01632.44
7.1.30.0250.01332.77
7.1.20.0250.01432.64
7.1.10.0050.01314.67
7.1.00.0130.01014.96

preferences:
63.82 ms | 401 KiB | 5 Q