3v4l.org

run code in 300+ PHP versions simultaneously
<?php function initialize_properties_here($object) { $object->bar = 123; } class Foo { public int $bar; public function __construct() { unset($this->bar); } public function __get(string $name) { initialize_properties_here($this); } } var_dump((new Foo())->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.5.30.0190.00917.93
8.5.20.0230.00718.00
8.5.10.0270.00717.88
8.5.00.0250.00717.73
8.4.180.0170.00719.72
8.4.170.0270.01020.93
8.4.160.0240.01020.96
8.4.150.0250.00617.62
8.4.140.0260.01217.81
8.4.130.0290.00718.18
8.4.120.0290.01018.61
8.4.110.0320.00818.63
8.4.100.0310.00917.99
8.4.90.0270.01119.39
8.4.80.0300.00918.17
8.4.70.0300.00918.20
8.4.60.0300.01018.21
8.4.50.0280.00918.64
8.4.40.0330.00718.61
8.4.30.0320.00817.74
8.4.20.0290.01117.76
8.4.10.0300.00617.70
8.3.300.0260.00919.25
8.3.290.0250.01019.10
8.3.280.0270.00918.41
8.3.270.0320.00916.63
8.3.260.0290.01016.60
8.3.250.0290.00816.68
8.3.240.0240.00816.83
8.3.230.0260.01116.73
8.3.220.0310.00717.53
8.3.210.0280.00717.34
8.3.200.0270.00716.69
8.3.190.0270.00917.40
8.3.180.0300.00816.71
8.3.170.0310.00818.18
8.3.160.0260.00916.87
8.3.150.0290.01117.47
8.3.140.0270.01016.63
8.3.130.0270.00616.68
8.3.120.0210.01017.45
8.3.110.0270.00416.76
8.3.100.0300.00619.14
8.3.90.0280.00619.99
8.3.80.0250.00917.36
8.3.70.0300.00916.81
8.3.60.0300.00716.57
8.3.50.0280.00719.43
8.3.40.0260.00618.31
8.3.30.0210.01018.15
8.3.20.0220.00518.71
8.3.10.0220.00819.19
8.3.00.0190.00818.90
8.2.300.0280.00918.27
8.2.290.0230.00716.67
8.2.280.0230.00917.36
8.2.270.0230.01017.38
8.2.260.0240.00816.61
8.2.250.0240.01116.79
8.2.240.0250.01016.77
8.2.230.0200.00817.97
8.2.220.0190.00623.66
8.2.210.0240.00519.87
8.2.200.0240.00816.70
8.2.190.0250.00817.21
8.2.180.0230.00916.49
8.2.170.0230.00819.61
8.2.160.0210.00918.43
8.2.150.0230.00520.38
8.2.140.0200.01020.06
8.2.130.0240.00419.21
8.2.120.0220.00820.60
8.2.110.0230.00718.94
8.2.100.0200.00917.85
8.2.90.0220.00718.31
8.2.80.0210.00617.92
8.2.70.0210.00817.65
8.2.60.0190.00617.79
8.2.50.0210.00717.87
8.2.40.0220.00618.68
8.2.30.0230.00618.63
8.2.20.0220.00817.75
8.2.10.0220.00817.88
8.2.00.0230.00517.86
8.1.340.0290.00818.30
8.1.330.0210.01116.08
8.1.320.0220.00618.09
8.1.310.0220.00816.35
8.1.300.0260.00716.92
8.1.290.0230.00721.05
8.1.280.0240.00719.49
8.1.270.0240.00719.64
8.1.260.0250.00621.04
8.1.250.0220.00821.07
8.1.240.0210.00719.61
8.1.230.0220.00717.67
8.1.220.0210.00817.67
8.1.210.0240.00617.92
8.1.200.0220.00617.42
8.1.190.0190.01017.22
8.1.180.0200.00917.59
8.1.170.0200.00917.79
8.1.160.0210.00718.52
8.1.150.0180.00817.91
8.1.140.0210.00617.99
8.1.130.0230.00617.40
8.1.120.0200.00917.47
8.1.110.0210.00817.36
8.1.100.0210.00617.53
8.1.90.0210.00517.43
8.1.80.0170.01117.44
8.1.70.0250.00517.44
8.1.60.0210.00717.72
8.1.50.0220.00617.63
8.1.40.0200.00917.70
8.1.30.0190.00717.65
8.1.20.0170.00517.76
8.1.10.0160.00717.66
8.1.00.0210.00817.53
8.0.300.0210.00517.50
8.0.290.0200.00616.84
8.0.280.0180.00817.35
8.0.270.0210.00616.97
8.0.260.0190.00716.94
8.0.250.0190.00716.98
8.0.240.0190.00716.87
8.0.230.0190.00716.97
8.0.220.0200.00716.86
8.0.210.0180.00716.89
8.0.200.0190.00717.02
8.0.190.0180.00816.87
8.0.180.0220.00416.87
8.0.170.0180.00816.97
8.0.160.0190.00816.94
8.0.150.0220.00616.71
8.0.140.0220.00516.96
8.0.130.0180.00815.68
8.0.120.0200.00916.79
8.0.110.0180.00816.75
8.0.100.0190.00816.69
8.0.90.0200.00716.86
8.0.80.0210.00916.84
8.0.70.0220.00516.85
8.0.60.0170.01016.83
8.0.50.0180.00816.75
8.0.30.0190.00716.85
8.0.20.0200.00817.23
8.0.10.0210.00616.98
8.0.00.0160.00916.74
7.4.330.0220.00516.07
7.4.320.0170.00816.58
7.4.300.0190.00616.61
7.4.290.0190.00616.66
7.4.280.0170.00716.62
7.4.270.0210.00616.57
7.4.260.0200.00716.48
7.4.250.0190.00616.59
7.4.240.0190.00716.63
7.4.230.0190.00716.57
7.4.220.0170.01216.62
7.4.210.0160.00816.59
7.4.200.0210.00616.51
7.4.190.0280.00916.66
7.4.180.0250.01016.63
7.4.160.0240.00616.56
7.4.150.0200.01016.82
7.4.140.0210.00917.22
7.4.130.0200.00716.47
7.4.120.0170.00816.52
7.4.110.0160.01016.51
7.4.100.0190.00916.38
7.4.90.0220.00616.46
7.4.80.0230.00917.55
7.4.70.0230.00616.57
7.4.60.0220.00716.47
7.4.50.0170.01016.34
7.4.40.0190.00916.45
7.4.30.0250.00516.47
7.4.20.0230.00616.50
7.4.10.0240.00816.46
7.4.00.0240.00816.59
7.3.330.0160.00615.07
7.3.320.0150.00515.29
7.3.310.0200.00516.32
7.3.300.0200.00516.28
7.3.290.0190.00516.27
7.3.280.0120.00816.28
7.3.270.0150.01316.68
7.3.260.0180.00416.20
7.3.250.0150.00716.29
7.3.240.0120.01016.29
7.3.230.0190.01016.26
7.3.220.0260.00716.26
7.3.210.0170.00916.32
7.3.200.0200.00616.27
7.3.190.0200.00516.20
7.3.180.0170.00916.23
7.3.170.0180.00716.30
7.3.160.0210.00716.34
7.3.150.0300.00416.15
7.3.140.0250.00616.17
7.3.130.0240.00816.30
7.3.120.0220.00716.33
7.3.110.0220.00616.20
7.3.100.0260.00316.17
7.3.90.0210.00616.52
7.3.80.0260.00616.28
7.3.70.0280.00816.28
7.3.60.0220.00716.33
7.3.50.0210.00916.40
7.3.40.0260.00716.21
7.3.30.0250.00816.36
7.3.20.0300.00617.32
7.3.10.0280.00517.16
7.3.00.0220.00917.28
7.2.340.0240.00715.98
7.2.330.0190.00916.25
7.2.320.0200.01116.29
7.2.310.0220.00616.30
7.2.300.0220.00616.18
7.2.290.0150.00816.43
7.2.280.0210.00816.22
7.2.270.0310.00316.21
7.2.260.0240.00516.04
7.2.250.0250.00816.15
7.2.240.0240.00816.15
7.2.230.0250.00716.15
7.2.220.0320.00716.26
7.2.210.0270.00816.23
7.2.200.0270.00716.35
7.2.190.0250.00816.27
7.2.180.0260.00616.35
7.2.170.0250.01016.50
7.2.160.0240.00916.36
7.2.150.0300.00717.16
7.2.140.0240.01117.24
7.2.130.0280.00917.51
7.2.120.0290.00917.51
7.2.110.0320.00717.39
7.2.100.0310.00717.46
7.2.90.0320.00816.50
7.2.80.0550.00716.52
7.2.70.0380.00916.48
7.2.60.0350.00916.54
7.2.50.0510.00916.36
7.2.40.0540.00616.51
7.2.30.0430.00816.50
7.2.20.0510.00816.67
7.2.10.0310.01116.57
7.2.00.0380.00816.53
7.1.330.0260.00716.18
7.1.320.0250.00916.36
7.1.310.0260.00716.37
7.1.300.0270.00816.20
7.1.290.0280.00716.41
7.1.280.0260.00716.28
7.1.270.0250.00916.41
7.1.260.0300.00716.03
7.1.250.0270.00716.20
7.1.240.0290.00616.09
7.1.230.0280.00816.26
7.1.220.0260.00716.27
7.1.210.0320.00615.41
7.1.200.0310.00715.28
7.1.190.0250.00515.42
7.1.180.0390.00815.42
7.1.170.0380.00815.37
7.1.160.0330.00515.44
7.1.150.0300.00915.53
7.1.140.0440.00515.40
7.1.130.0380.00615.47
7.1.120.0430.00615.29
7.1.110.0370.00615.39
7.1.100.0440.00515.31
7.1.90.0370.00715.31
7.1.80.0430.00515.41
7.1.70.0420.00515.24
7.1.60.0460.00921.36
7.1.50.0480.01021.48
7.1.40.0360.00921.29
7.1.30.0480.00821.39
7.1.20.0440.00621.36
7.1.10.0370.00615.36
7.1.00.0290.00715.27
7.0.330.0260.00816.12
7.0.320.0230.00915.95
7.0.310.0190.00715.00
7.0.300.0390.00615.09
7.0.290.0380.01215.03
7.0.280.0520.00714.92
7.0.270.0490.00715.00
7.0.260.0450.00815.03
7.0.250.0410.00915.18
7.0.240.0430.01015.12
7.0.230.0480.00815.12
7.0.220.0390.01015.28
7.0.210.0370.00815.11
7.0.200.0370.00815.17
7.0.190.0390.01015.26
7.0.180.0320.00815.12
7.0.170.0390.00715.13
7.0.160.0350.00715.05
7.0.150.0380.00615.18
7.0.140.0370.00915.10
7.0.130.0340.00815.19
7.0.120.0310.00615.19
7.0.110.0300.00915.12
7.0.100.0310.00714.99
7.0.90.0310.00715.12
7.0.80.0280.00814.96
7.0.70.0360.00815.04
7.0.60.0380.00715.12
7.0.50.0490.00715.07
7.0.40.0280.03217.14
7.0.30.0290.03517.23
7.0.20.0390.03017.14
7.0.10.0300.02917.11
7.0.00.0360.03017.22
5.6.400.0280.00515.73
5.6.390.0220.01015.82
5.6.380.0250.00715.75
5.6.370.0240.00815.87
5.6.360.0240.00815.81
5.6.350.0230.00815.80
5.6.340.0260.00715.80
5.6.330.0230.00815.62
5.6.320.0260.00815.87
5.6.310.0230.00715.75
5.6.300.0200.00415.13
5.6.290.0210.00715.15
5.6.280.0210.00615.21
5.6.270.0180.01015.14
5.6.260.0220.00615.34
5.6.250.0200.00615.37
5.6.240.0220.00715.26
5.6.230.0250.00515.32
5.6.220.0210.00615.23
5.6.210.0220.00615.12
5.6.200.0200.00715.28
5.6.190.0230.03117.38
5.6.180.0270.02917.39
5.6.170.0200.03217.31
5.6.160.0230.03017.44
5.6.150.0210.02917.29
5.6.140.0170.03017.30
5.6.130.0290.02717.35
5.6.120.0200.03617.26
5.6.110.0210.03017.23
5.6.100.0220.02817.22
5.6.90.0220.03417.20
5.6.80.0180.03017.12
5.6.70.0170.03417.06
5.6.60.0200.03417.05
5.6.50.0180.03517.08
5.6.40.0280.03317.06
5.6.30.0240.03217.04
5.6.20.0270.02617.00
5.6.10.0250.03016.95
5.6.00.0220.02716.96
5.5.380.0220.00414.18
5.5.370.0200.00514.08
5.5.360.0180.01013.99
5.5.350.0210.00513.97
5.5.340.0180.00714.01
5.5.330.0180.03116.66
5.5.320.0180.02916.59
5.5.310.0200.02516.51
5.5.300.0190.03316.47
5.5.290.0260.03416.48
5.5.280.0250.02816.60
5.5.270.0210.03616.56
5.5.260.0190.03216.54
5.5.250.0270.02916.39
5.5.240.0230.03516.31
5.5.230.0270.02516.29
5.5.220.0300.03516.30
5.5.210.0220.02616.37
5.5.200.0290.02816.26
5.5.190.0240.03016.18
5.5.180.0240.03016.17
5.5.170.0200.00915.09
5.5.160.0160.02816.21
5.5.150.0180.03216.08
5.5.140.0230.02816.20
5.5.130.0240.02616.25
5.5.120.0240.03216.27
5.5.110.0150.03416.16
5.5.100.0210.02716.12
5.5.90.0190.02816.20
5.5.80.0200.03016.09
5.5.70.0210.03016.25
5.5.60.0140.03216.18
5.5.50.0220.03316.26
5.5.40.0270.02916.19
5.5.30.0190.03116.21
5.5.20.0170.02916.26
5.5.10.0150.03216.22
5.5.00.0190.02616.17

preferences:
50.3 ms | 2201 KiB | 5 Q