3v4l.org

run code in 500+ PHP versions simultaneously
<?php class StrWrap { public string $s = ''; } // Configuration du tableau pour piéger les pointeurs internes $obj = new StrWrap(); $data = array(); $data[0] = $obj; $data[1] = "different"; // Valide $a !== $b $data[2] = "encore_different"; // Valide $b !== $c // On utilise une référence classique pour forcer PHP à lier $data[1] au retour de prev // Ou plus simplement, on triche sur la sérialisation en forçant la structure attendue :

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.60.0240.00716.66
8.5.50.0240.00616.32
8.5.40.0190.00616.43
8.5.30.0200.00516.30
8.5.20.0200.00616.52
8.5.10.0220.00616.52
8.5.00.0080.00416.46
8.4.210.0060.00719.55
8.4.200.0140.00419.49
8.4.190.0160.00619.36
8.4.180.0150.00219.59
8.4.170.0130.00519.57
8.4.160.0140.00619.40
8.4.150.0180.00419.31
8.4.140.0140.00517.44
8.4.130.0160.00517.49
8.4.120.0140.00617.68
8.4.110.0170.00517.54
8.4.100.0180.00517.64
8.4.90.0170.00317.54
8.4.80.0200.00417.67
8.4.70.0170.00517.50
8.4.60.0180.00617.54
8.4.50.0180.00717.47
8.4.40.0210.00517.60
8.4.30.0160.00517.47
8.4.20.0210.00417.52
8.4.10.0190.00217.49
8.3.310.0120.00518.36
8.3.300.0140.00418.23
8.3.290.0150.00418.22
8.3.280.0170.00518.17
8.3.270.0150.00416.38
8.3.260.0160.00516.43
8.3.250.0170.00616.38
8.3.240.0170.00716.60
8.3.230.0190.00616.47
8.3.220.0190.00616.47
8.3.210.0190.00316.43
8.3.200.0140.00516.39
8.3.190.0130.00516.32
8.3.180.0150.00316.42
8.3.170.0140.00516.44
8.3.160.0160.00416.47
8.3.150.0160.00416.51
8.3.140.0150.00416.57
8.3.130.0140.00316.60
8.3.120.0110.00716.45
8.3.110.0130.00516.50
8.3.100.0150.00516.35
8.3.90.0160.00516.47
8.3.80.0140.00616.48
8.3.70.0150.00416.41
8.3.60.0160.00416.54
8.3.50.0170.00316.45
8.3.40.0160.00317.75
8.3.30.0120.00417.75
8.3.20.0130.00517.73
8.3.10.0120.00517.71
8.3.00.0130.00417.65
8.2.310.0160.00417.74

preferences:
37.92 ms | 728 KiB | 5 Q