3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = 'property'; public function bar() { return 'method'; } } class Foo2 { public $bar = 'property'; public function bar() { return 'method'; } } $obj = new Foo(); $obj2 = new Foo2(); var_dump($obj->bar === $obj2->bar);

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.4.130.0120.00817.68
8.4.120.0080.01220.33
8.4.110.0110.00622.39
8.4.100.0040.00518.99
8.4.90.0110.00920.61
8.4.80.0110.00718.65
8.4.70.0080.00920.85
8.4.60.0060.00320.57
8.4.50.0140.00820.62
8.4.40.0110.00719.27
8.4.30.0160.00318.35
8.4.20.0160.00018.75
8.4.10.0150.00617.65
8.3.260.0130.00616.61
8.3.250.0100.00918.92
8.3.240.0060.00316.54
8.3.230.0110.00816.34
8.3.220.0110.00418.71
8.3.210.0110.00716.47
8.3.200.0060.00216.63
8.3.190.0050.00318.67
8.3.180.0050.00418.81
8.3.170.0040.01116.83
8.3.160.0090.01018.50
8.3.150.0030.00618.26
8.3.140.0080.00020.62
8.3.130.0040.00416.35
8.3.120.0050.00318.75
8.3.110.0030.00620.94
8.3.100.0060.00316.50
8.3.90.0000.00816.50
8.3.80.0100.00018.30
8.3.70.0110.00316.38
8.3.60.0140.00716.38
8.3.50.0100.00718.25
8.3.40.0120.00418.46
8.3.30.0070.00718.54
8.3.20.0050.00220.40
8.3.10.0040.00423.48
8.3.00.0040.00422.43
8.2.290.0080.00920.27
8.2.280.0130.00618.34
8.2.270.0070.01316.48
8.2.260.0090.00617.11
8.2.250.0140.00018.24
8.2.240.0040.00419.09
8.2.230.0050.00522.58
8.2.220.0030.00624.06
8.2.210.0100.01026.77
8.2.200.0030.00616.88
8.2.190.0120.00616.58
8.2.180.0030.01218.16
8.2.170.0090.00622.96
8.2.160.0100.00320.38
8.2.150.0000.00924.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0070.00026.16
8.2.110.0030.00622.08
8.2.100.0060.00619.34
8.2.90.0040.00420.54
8.2.80.0000.00820.44
8.2.70.0040.00417.80
8.2.60.0090.00017.97
8.2.50.0030.00518.10
8.2.40.0040.00419.30
8.2.30.0050.00219.19
8.2.20.0070.00018.06
8.2.10.0000.00719.17
8.2.00.0040.00419.24
8.1.330.0110.00921.86
8.1.320.0120.00816.19
8.1.310.0140.00018.39
8.1.300.0070.01120.33
8.1.290.0040.00418.88
8.1.280.0030.01225.92
8.1.270.0070.00022.25
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0030.00622.14
8.1.230.0060.00622.75
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0080.00417.10
8.1.180.0040.00418.10
8.1.170.0050.00318.66
8.1.160.0040.00418.72
8.1.150.0070.00018.77
8.1.140.0030.00320.93
8.1.130.0030.00319.95
8.1.120.0050.00217.41
8.1.110.0070.00017.40
8.1.100.0000.00817.41
8.1.90.0000.00817.28
8.1.80.0050.00317.32
8.1.70.0050.00317.36
8.1.60.0050.00317.57
8.1.50.0080.00017.50
8.1.40.0000.00817.35
8.1.30.0080.00017.53
8.1.20.0000.00817.49
8.1.10.0000.00917.58
8.1.00.0040.00417.47
8.0.300.0040.00420.01
8.0.290.0090.00016.75
8.0.280.0000.00718.30
8.0.270.0000.00817.23
8.0.260.0000.00620.18
8.0.250.0030.00316.93
8.0.240.0030.00316.79
8.0.230.0000.00716.90
8.0.220.0030.00316.79
8.0.210.0040.00416.72
8.0.200.0030.00316.85
8.0.190.0050.00216.89
8.0.180.0030.00516.75
8.0.170.0060.00316.88
8.0.160.0050.00516.88
8.0.150.0070.00016.71
8.0.140.0040.00416.84
8.0.130.0030.00313.35
8.0.120.0040.00416.79
8.0.110.0040.00416.72
8.0.100.0000.00716.70
8.0.90.0000.00716.93
8.0.80.0090.00816.83
8.0.70.0040.00416.73
8.0.60.0000.00716.92
8.0.50.0040.00416.73
8.0.30.0130.00317.04
8.0.20.0090.00916.91
8.0.10.0050.00316.78
8.0.00.0100.01016.50
7.4.330.0050.00016.79
7.4.320.0030.00316.53
7.4.300.0000.00616.51
7.4.290.0030.00416.62
7.4.280.0060.00316.42
7.4.270.0030.00316.47
7.4.260.0000.00613.34
7.4.250.0070.00016.52
7.4.240.0000.00716.51
7.4.230.0040.00416.51
7.4.220.0000.00716.60
7.4.210.0040.01116.55
7.4.200.0040.00416.54
7.4.140.0120.00617.86
7.4.130.0000.02216.33
7.4.120.0090.01316.66
7.4.110.0070.01016.42
7.4.100.0090.01116.43
7.4.90.0110.00616.61
7.4.80.0110.00619.39
7.4.70.0060.00916.32
7.4.60.0190.00316.52
7.4.50.0060.00916.60
7.4.40.0090.00616.47
7.4.00.0000.01814.69
7.3.330.0000.00716.26
7.3.320.0040.00413.09
7.3.310.0000.00716.27
7.3.300.0000.00716.11
7.3.290.0050.00916.23
7.3.280.0100.01016.18
7.3.260.0090.01016.34
7.3.240.0110.00816.31
7.3.230.0180.00416.21
7.3.210.0090.00916.46
7.3.200.0100.00616.48
7.3.190.0060.01116.38
7.3.180.0110.00516.44
7.3.170.0030.01316.36
7.3.160.0060.00916.23
7.3.90.0110.00714.65
7.3.80.0120.00314.82
7.3.70.0050.01314.47
7.3.60.0030.01214.68
7.3.50.0120.00614.73
7.3.40.0030.01014.48
7.3.30.0040.01114.34
7.3.20.0100.00316.71
7.3.10.0000.01316.79
7.3.00.0080.00616.37
7.2.330.0090.00916.68
7.2.320.0060.01616.50
7.2.310.0130.00316.39
7.2.300.0040.01716.26
7.2.290.0100.00716.55
7.2.220.0130.00614.91
7.2.210.0070.01114.89
7.2.200.0130.00614.74
7.2.190.0100.01014.97
7.2.180.0040.01614.96
7.2.170.0120.00614.70
7.2.160.0030.01114.75
7.2.150.0070.00716.90
7.2.140.0060.00916.63
7.2.130.0080.01216.65
7.2.120.0060.01416.85
7.2.110.0120.00316.76
7.2.100.0130.00716.53
7.2.90.0060.01616.68
7.2.80.0070.00716.92
7.2.70.0060.00916.88
7.2.60.0000.01416.84
7.2.50.0040.00916.93
7.2.40.0140.00016.73
7.2.30.0070.00716.68
7.2.20.0160.00316.75
7.2.10.0070.01116.70
7.2.00.0120.00516.98
7.1.320.0090.00815.43
7.1.310.0130.00315.87
7.1.300.0070.00715.64
7.1.290.0130.00015.78
7.1.280.0060.00815.84
7.1.270.0070.00715.77
7.1.260.0070.00715.62
7.1.250.0150.00415.47

preferences:
28.77 ms | 403 KiB | 5 Q