3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user = new stdClass(); $user->id = 1234567; $thisObj = new stdClass(); $user2 = new stdClass(); $user2->id = 1234567; $thisObj->user = $user2; if($user->id != $thisObj->user->id){ echo "Does not work"; } else { echo "works"; }

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.0060.01218.18
8.3.60.0110.00716.61
8.3.50.0130.00521.25
8.3.40.0180.00018.81
8.3.30.0070.01118.55
8.3.20.0080.00020.29
8.3.10.0070.00023.65
8.3.00.0040.00423.55
8.2.190.0140.00416.63
8.2.180.0110.00316.50
8.2.170.0110.00322.96
8.2.160.0100.00619.33
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00319.70
8.2.120.0030.00526.35
8.2.110.0090.00022.07
8.2.100.0040.00718.03
8.2.90.0040.00419.05
8.2.80.0050.00317.97
8.2.70.0040.00817.38
8.2.60.0000.00817.92
8.2.50.0000.00818.07
8.2.40.0070.00022.34
8.2.30.0040.00719.50
8.2.20.0040.00417.68
8.2.10.0090.00018.10
8.2.00.0040.00417.92
8.1.280.0090.00625.92
8.1.270.0030.00623.98
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0100.00022.46
8.1.230.0080.00819.02
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0030.00617.48
8.1.190.0050.00317.25
8.1.180.0040.00418.10
8.1.170.0060.00318.64
8.1.160.0070.00020.63
8.1.150.0050.00318.83
8.1.140.0040.00719.56
8.1.130.0000.00717.74
8.1.120.0040.00417.48
8.1.110.0030.00317.46
8.1.100.0050.00317.46
8.1.90.0040.00417.36
8.1.80.0000.01017.41
8.1.70.0000.00717.34
8.1.60.0080.00017.57
8.1.50.0040.00417.53
8.1.40.0030.00617.51
8.1.30.0040.00417.65
8.1.20.0080.00017.55
8.1.10.0070.00017.54
8.1.00.0080.00017.57
8.0.300.0060.00318.77
8.0.290.0070.00016.75
8.0.280.0070.00018.34
8.0.270.0000.00717.30
8.0.260.0060.00017.21
8.0.250.0000.00716.85
8.0.240.0000.00716.90
8.0.230.0040.00416.79
8.0.220.0000.00816.81
8.0.210.0000.00816.71
8.0.200.0040.00416.80
8.0.190.0080.00416.92
8.0.180.0080.00016.75
8.0.170.0000.00816.88
8.0.160.0070.00016.70
8.0.150.0050.00216.75
8.0.140.0000.00716.72
8.0.130.0030.00313.23
8.0.120.0000.00716.83
8.0.110.0000.00816.71
8.0.100.0020.00516.93
8.0.90.0020.00516.86
8.0.80.0040.01216.82
8.0.70.0030.00316.73
8.0.60.0040.00416.69
8.0.50.0050.00316.88
8.0.30.0120.00716.96
8.0.20.0090.01117.40
8.0.10.0030.00516.82
8.0.00.0090.00816.65
7.4.330.0050.00016.70
7.4.320.0000.00616.40
7.4.300.0000.00716.61
7.4.290.0040.00416.54
7.4.280.0030.00616.59
7.4.270.0000.00716.49
7.4.260.0070.00016.46
7.4.250.0040.00416.57
7.4.240.0040.00316.59
7.4.230.0000.00716.69
7.4.220.0100.01016.69
7.4.210.0060.01016.61
7.4.200.0050.00216.66
7.4.160.0100.00716.54
7.4.150.0130.00617.40
7.4.140.0080.01017.86
7.4.130.0160.00316.43
7.4.120.0130.00516.44
7.4.110.0070.01116.56
7.4.100.0180.00016.58
7.4.90.0100.01316.42
7.4.80.0130.00619.39
7.4.70.0100.00616.44
7.4.60.0070.01416.43
7.4.50.0070.00716.45
7.4.40.0100.01416.45
7.4.30.0100.00716.48
7.4.00.0050.01114.63
7.3.330.0050.00313.05
7.3.320.0030.00313.09
7.3.310.0070.00016.10
7.3.300.0030.00316.30
7.3.290.0040.00416.16
7.3.280.0080.00816.28
7.3.270.0160.00917.40
7.3.260.0180.00016.27
7.3.250.0080.01016.25
7.3.240.0090.00916.48
7.3.230.0150.00316.39
7.3.210.0030.01416.41
7.3.200.0060.01216.57
7.3.190.0090.00916.37
7.3.180.0100.00616.57
7.3.170.0080.00816.57
7.3.160.0120.00916.23
7.3.120.0000.01514.88
7.3.110.0030.01414.93
7.3.100.0040.01514.68
7.3.90.0070.00714.56
7.3.80.0040.01114.93
7.3.70.0030.00614.48
7.3.60.0060.00614.80
7.3.50.0000.01414.72
7.3.40.0030.00914.93
7.3.30.0050.00514.95
7.3.20.0090.00616.75
7.3.10.0100.00316.30
7.3.00.0030.00716.64
7.2.330.0030.01416.64
7.2.320.0190.00016.39
7.2.310.0090.01016.39
7.2.300.0140.00316.45
7.2.290.0040.01216.58
7.2.250.0070.01415.27
7.2.240.0060.01215.31
7.2.230.0070.01115.18
7.2.220.0070.00314.90
7.2.210.0100.00315.23
7.2.200.0070.00714.88
7.2.190.0060.00614.68
7.2.180.0030.00614.81
7.2.170.0070.00715.22
7.2.00.0070.00719.54
7.1.330.0060.00815.71
7.1.320.0120.00015.76
7.1.310.0030.00915.98
7.1.300.0080.00415.90
7.1.290.0060.00515.48
7.1.280.0040.00415.57
7.1.270.0000.01015.75
7.1.260.0090.00015.74
7.1.100.0030.00918.23
7.1.70.0000.01017.25
7.1.60.0070.01719.27
7.1.50.0100.01416.93
7.1.00.0030.07722.30
7.0.200.0000.00716.50
7.0.60.0130.04021.77
7.0.50.0070.04717.86
7.0.40.0100.04020.40
7.0.30.0400.08020.21
7.0.20.0330.07720.23
7.0.10.0100.08720.21
7.0.00.0070.07320.30
5.6.280.0000.03320.92
5.6.210.0070.05720.66
5.6.200.0000.04718.21
5.6.190.0070.06020.41
5.6.180.0470.05020.39
5.6.170.0230.04720.39
5.6.160.0100.08020.37
5.6.150.0030.04018.12
5.6.140.0030.07318.21
5.6.130.0030.06018.09
5.6.120.0030.06021.11
5.6.110.0070.04020.99
5.6.100.0000.04720.89
5.6.90.0130.06021.02
5.6.80.0270.06720.48
5.5.350.0030.06720.36
5.5.340.0070.06717.88
5.5.330.0070.04320.25
5.5.320.0200.04720.20
5.5.310.0230.06720.32
5.5.300.0030.06017.92
5.5.290.0030.04017.98
5.5.280.0000.05320.64
5.5.270.0100.07320.72
5.5.260.0070.06020.75
5.5.250.0130.08020.68
5.5.240.0130.06020.18

preferences:
51.52 ms | 401 KiB | 5 Q