3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Model { protected $attributes = []; public function __set($key, $value) { echo 'called magic method: ', var_export([$key => $value], true), \PHP_EOL; } } $model = new \Model(); $model->attributes = 'foo'; var_dump($model);

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.120.0100.00320.52
8.4.110.0110.00918.99
8.4.100.0130.00718.86
8.4.90.0150.00520.64
8.4.80.0040.00518.97
8.4.70.0050.00317.75
8.4.60.0140.00718.96
8.4.50.0110.00920.68
8.4.40.0100.01019.47
8.4.30.0110.00722.30
8.4.20.0130.00720.73
8.4.10.0090.00023.70
8.3.250.0130.00617.37
8.3.240.0040.00416.81
8.3.230.0050.00416.66
8.3.220.0100.00919.16
8.3.210.0070.00716.60
8.3.200.0050.00416.58
8.3.190.0040.00617.40
8.3.180.0100.00816.45
8.3.170.0090.00916.68
8.3.160.0110.00716.85
8.3.150.0140.00417.11
8.3.140.0050.00320.74
8.3.130.0030.00618.27
8.3.120.0080.00020.83
8.3.110.0060.00316.51
8.3.100.0080.00016.86
8.3.90.0050.00316.54
8.3.80.0100.00016.50
8.3.70.0150.00316.63
8.3.60.0180.00018.31
8.3.50.0100.00720.32
8.3.40.0080.00818.90
8.3.30.0070.00719.21
8.3.20.0040.00424.18
8.3.10.0070.00024.66
8.3.00.0000.00826.16
8.2.290.0130.00822.43
8.2.280.0050.01120.06
8.2.270.0120.00616.79
8.2.260.0070.01118.82
8.2.250.0080.00016.74
8.2.240.0060.00319.15
8.2.230.0080.00020.94
8.2.220.0040.00424.06
8.2.210.0030.00526.77
8.2.200.0060.00616.63
8.2.190.0060.00916.75
8.2.180.0080.00825.92
8.2.170.0100.00719.09
8.2.160.0140.00022.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0000.00819.69
8.2.110.0100.00019.33
8.2.100.0120.00017.91
8.2.90.0000.00819.46
8.2.80.0040.00418.76
8.2.70.0030.00617.63
8.2.60.0070.00318.05
8.2.50.0040.00418.07
8.2.40.0080.00018.34
8.2.30.0040.00418.19
8.2.20.0050.00320.50
8.2.10.0000.00718.13
8.2.00.0040.00419.23
8.1.330.0120.00822.14
8.1.320.0090.00915.98
8.1.310.0040.00716.48
8.1.300.0090.00019.65
8.1.290.0090.00030.84
8.1.280.0090.00625.92
8.1.270.0050.00323.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00320.91
8.1.230.0040.00719.01
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0040.00417.25
8.1.180.0050.00318.10
8.1.170.0060.00318.66
8.1.160.0030.00518.73
8.1.150.0040.00418.50
8.1.140.0070.00317.30
8.1.130.0000.00718.75
8.1.120.0000.00717.44
8.1.110.0040.00417.38
8.1.100.0000.00717.46
8.1.90.0040.00417.32
8.1.80.0000.00717.30
8.1.70.0040.01217.39
8.1.60.0040.00917.54
8.1.50.0090.00417.34
8.1.40.0050.00517.41
8.1.30.0090.00517.70
8.1.20.0100.01017.58
8.1.10.0140.00317.63
8.1.00.0120.00617.43
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0070.00018.44
8.0.270.0000.00718.01
8.0.260.0000.00618.49
8.0.250.0000.00716.88
8.0.240.0030.00316.98
8.0.230.0030.00316.93
8.0.220.0000.00716.71
8.0.210.0000.00816.74
8.0.200.0080.00816.89
8.0.190.0110.00616.75
8.0.180.0120.00516.71
8.0.170.0050.01116.84
8.0.160.0070.00916.91
8.0.150.0100.00616.65
8.0.140.0080.00816.82
8.0.130.0080.00816.91
8.0.120.0150.00016.68
8.0.110.0090.00616.83
8.0.100.0050.01016.61
8.0.90.0080.00816.75
8.0.80.0130.00316.71
8.0.70.0120.00416.79
8.0.60.0140.00316.75
8.0.50.0130.00416.84
8.0.30.0130.00416.77
8.0.20.0060.01116.72
8.0.10.0130.00816.93
7.4.330.0020.00215.55
7.4.320.0000.00616.44
7.4.300.0040.00416.58
7.4.290.0080.01116.65
7.4.280.0120.00816.55
7.4.270.0140.00416.60
7.4.260.0130.00716.46
7.4.250.0140.00416.46
7.4.240.0140.00516.49
7.4.230.0160.00316.66
7.4.220.0120.00416.61
7.4.210.0140.00316.45
7.4.200.0120.00516.50
7.4.190.0150.00216.55
7.4.180.0120.00616.65
7.4.160.0060.01016.59
7.4.150.0140.00216.38
7.4.140.0140.00316.52
7.4.130.0160.00216.32
7.4.120.0100.00716.45
7.4.110.0150.00016.49
7.4.100.0120.00316.41
7.4.90.0120.00616.30
7.4.80.0120.00416.49
7.4.70.0110.00616.36
7.4.60.0170.00016.37
7.4.50.0130.00316.41
7.4.40.0000.01016.36
7.4.30.0000.00716.48
7.4.20.0040.00416.33
7.4.10.0070.00016.49
7.4.00.0030.00616.52

preferences:
31.5 ms | 403 KiB | 5 Q