3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $a; protected $b; private $c; } class B extends A {} $a = new A; $b = new B; $a->a = 1; $b->a = 2; var_dump($a == $b); var_dump($a === $b);

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.01016.62
8.3.50.0080.00818.05
8.3.40.0040.01118.84
8.3.30.0040.01118.76
8.3.20.0040.00420.34
8.3.10.0030.00623.61
8.3.00.0080.00019.85
8.2.180.0150.00018.16
8.2.170.0110.00322.96
8.2.160.0140.00020.35
8.2.150.0030.00524.18
8.2.140.0050.00324.66
8.2.130.0040.00420.38
8.2.120.0040.00426.35
8.2.110.0090.00020.45
8.2.100.0130.00017.91
8.2.90.0000.00817.97
8.2.80.0050.00317.97
8.2.70.0040.00417.38
8.2.60.0060.00317.80
8.2.50.0040.00418.07
8.2.40.0000.00821.06
8.2.30.0030.00520.69
8.2.20.0050.00217.64
8.2.10.0080.00018.03
8.2.00.0000.00717.93
8.1.280.0110.01125.92
8.1.270.0130.00623.77
8.1.260.0070.00028.09
8.1.250.0050.00328.09
8.1.240.0030.00622.05
8.1.230.0060.00620.90
8.1.220.0040.00717.74
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0040.00417.70
8.1.180.0030.00618.10
8.1.170.0000.00818.36
8.1.160.0050.00221.93
8.1.150.0000.00818.93
8.1.140.0040.00419.57
8.1.130.0030.00517.44
8.1.120.0030.00417.36
8.1.110.0070.00017.42
8.1.100.0000.00717.52
8.1.90.0000.00717.36
8.1.80.0000.00717.43
8.1.70.0070.00017.50
8.1.60.0050.00217.59
8.1.50.0000.00917.40
8.1.40.0070.00317.53
8.1.30.0040.00417.50
8.1.20.0040.00417.62
8.1.10.0040.00417.59
8.1.00.0000.00717.52
8.0.300.0080.00020.14
8.0.290.0040.00416.75
8.0.280.0000.00718.38
8.0.270.0030.00317.24
8.0.260.0030.00316.73
8.0.250.0030.00316.92
8.0.240.0030.00316.82
8.0.230.0040.00416.93
8.0.220.0000.00716.86
8.0.210.0050.00216.91
8.0.200.0070.00016.99
8.0.190.0030.00516.86
8.0.180.0040.00416.82
8.0.170.0070.00016.82
8.0.160.0000.00716.88
8.0.150.0030.00316.84
8.0.140.0000.00716.75
8.0.130.0000.00613.23
8.0.120.0000.00816.69
8.0.110.0040.00416.90
8.0.100.0040.00416.76
8.0.90.0040.00416.71
8.0.80.0160.00616.93
8.0.70.0050.00316.68
8.0.60.0000.00716.68
8.0.50.0040.00416.86
8.0.30.0140.00716.97
8.0.20.0080.01317.40
8.0.10.0080.00017.07
8.0.00.0120.00816.61
7.4.330.0060.00016.83
7.4.320.0070.00016.41
7.4.300.0000.00616.52
7.4.290.0040.00416.61
7.4.280.0060.00316.46
7.4.270.0000.00716.50
7.4.260.0040.00416.59
7.4.250.0050.00216.45
7.4.240.0050.00216.50
7.4.230.0030.00516.60
7.4.220.0090.00916.43
7.4.210.0130.00716.68
7.4.200.0070.00016.70
7.4.160.0120.00416.39
7.4.150.0060.01217.40
7.4.140.0110.00817.86
7.4.130.0100.01116.54
7.4.120.0050.01216.56
7.4.110.0110.00816.32
7.4.100.0180.00616.41
7.4.90.0150.00616.58
7.4.80.0100.01319.39
7.4.70.0100.00716.27
7.4.60.0110.00416.47
7.4.50.0090.00916.34
7.4.40.0090.01216.54
7.4.30.0060.01016.46
7.4.00.0070.00715.08
7.3.330.0020.00213.42
7.3.320.0000.00513.37
7.3.310.0070.00016.23
7.3.300.0000.00616.38
7.3.290.0040.01016.35
7.3.280.0070.01216.33
7.3.270.0150.00617.40
7.3.260.0070.01016.64
7.3.250.0090.00916.60
7.3.240.0110.00516.33
7.3.230.0070.01016.39
7.3.210.0120.00616.52
7.3.200.0150.00316.44
7.3.190.0090.00616.55
7.3.180.0060.01016.66
7.3.170.0060.01016.65
7.3.160.0030.01316.63
7.3.120.0060.01014.95
7.3.110.0040.01114.53
7.3.100.0130.00314.60
7.3.90.0070.01114.88
7.3.80.0060.01214.95
7.3.70.0040.00914.66
7.3.60.0040.01214.98
7.3.50.0030.00914.79
7.3.40.0070.00714.79
7.3.30.0080.00414.52
7.3.20.0060.00916.80
7.3.10.0070.01016.33
7.3.00.0130.00016.85
7.2.330.0080.00816.60
7.2.320.0100.01016.58
7.2.310.0090.01016.66
7.2.300.0100.00716.53
7.2.290.0110.01216.52
7.2.240.0040.01515.05
7.2.230.0120.00315.24
7.2.220.0070.01115.18
7.2.210.0080.00814.93
7.2.200.0040.00814.96
7.2.190.0070.00714.89
7.2.180.0130.00314.91
7.2.170.0040.01114.86
7.2.160.0060.01214.68
7.2.150.0120.00616.95
7.2.140.0120.00016.71
7.2.130.0000.01116.94
7.2.120.0000.01416.95
7.2.110.0060.00616.89
7.2.100.0030.01316.93
7.2.90.0040.01216.58
7.2.80.0030.01416.82
7.2.70.0070.01016.86
7.2.60.0090.00616.73
7.2.50.0060.00916.74
7.2.40.0030.00716.77
7.2.30.0070.00716.69
7.2.20.0090.00916.74
7.2.10.0030.01016.80
7.2.00.0090.00518.09
7.1.330.0070.00715.71
7.1.320.0000.01415.89
7.1.310.0000.01715.80
7.1.300.0110.00415.90
7.1.290.0000.00915.79
7.1.280.0070.00415.79
7.1.270.0090.00615.60
7.1.260.0000.01215.77
7.1.250.0030.01015.55
7.1.100.0030.01418.05
7.1.70.0040.00416.99
7.1.60.0070.00419.50
7.1.50.0000.01916.93
7.1.00.0030.07322.54
7.0.200.0040.00416.51
7.0.60.0100.04019.87
7.0.50.0000.06317.98
7.0.40.0070.08020.24
7.0.30.0170.04720.17
7.0.20.0470.07320.09
7.0.10.0000.04720.08
7.0.00.0030.08720.20
5.6.280.0030.07021.11
5.6.210.0070.06320.67
5.6.200.0030.04318.18
5.6.190.0100.08720.61
5.6.180.0370.04020.68
5.6.170.0230.07320.48
5.6.160.0130.07020.46
5.6.150.0070.08718.23
5.6.140.0070.07018.20
5.6.130.0030.08318.24
5.6.120.0030.05721.00
5.6.110.0100.08321.11
5.6.100.0170.07720.95
5.6.90.0170.08721.00
5.6.80.0100.07020.37
5.5.350.0270.07020.38
5.5.340.0070.04017.92
5.5.330.0170.07320.42
5.5.320.0070.04720.32
5.5.310.0130.04020.27
5.5.300.0070.08317.95
5.5.290.0170.07717.98
5.5.280.0070.04020.87
5.5.270.0100.05020.89
5.5.260.0130.05720.67
5.5.250.0100.07720.58
5.5.240.0070.03720.23

preferences:
42.53 ms | 400 KiB | 5 Q