3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); namespace Forum; class Message {} namespace Messenger; class Message {} $forumMessage = new \Forum\Message; $messengerMessage = new \Messenger\Message; $date = new DateTime(); var_dump($forumMessage::class); var_dump($messengerMessage::class);

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.20.0040.00418.75
8.4.10.0240.00417.73
8.3.140.0210.00616.55
8.3.130.0280.00516.35
8.3.120.0190.00517.06
8.3.110.0250.00517.13
8.3.100.0300.00629.03
8.3.90.0230.00723.40
8.3.80.0220.00723.42
8.3.70.0260.00823.00
8.3.60.0200.00922.00
8.3.50.0200.00522.16
8.3.40.0190.00822.47
8.3.30.0220.00822.17
8.3.20.0190.00823.34
8.3.10.0170.00823.42
8.3.00.0170.00722.98
8.2.260.0170.01116.66
8.2.250.0200.00617.09
8.2.240.0240.00417.15
8.2.230.0180.00818.06
8.2.220.0220.00324.96
8.2.210.0170.00423.45
8.2.200.0210.00623.33
8.2.190.0200.00723.07
8.2.180.0200.00622.62
8.2.170.0230.00422.08
8.2.160.0190.00722.70
8.2.150.0210.00622.95
8.2.140.0200.00623.13
8.2.130.0200.00623.29
8.2.120.0190.00522.99
8.2.110.0170.00622.53
8.2.100.0190.00721.85
8.2.90.0190.00721.47
8.2.80.0200.00821.45
8.2.70.0220.00631.84
8.2.60.0200.00524.34
8.2.50.0170.00623.47
8.2.40.0180.00624.99
8.2.30.0190.00524.92
8.2.20.0180.00625.11
8.2.10.0150.00523.53
8.2.00.0160.00724.38
8.1.310.0170.01117.46
8.1.300.0170.00816.20
8.1.290.0150.01225.15
8.1.280.0220.00622.04
8.1.270.0180.00622.94
8.1.260.0200.00723.36
8.1.250.0200.00623.34
8.1.240.0160.00821.98
8.1.230.0190.00721.46
8.1.220.0190.00721.32
8.1.210.0190.00621.60
8.1.200.0170.00625.15
8.1.190.0190.00425.06
8.1.180.0180.00624.92
8.1.170.0170.00824.96
8.1.160.0180.00525.01
8.1.150.0190.00424.98
8.1.140.0170.00724.86
8.1.130.0160.00724.12
8.1.120.0170.00523.75
8.1.110.0140.00623.53
8.1.100.0140.00623.29
8.1.90.0120.00622.80
8.1.80.0150.00522.21
8.1.70.0160.00522.57
8.1.60.0140.00621.71
8.1.50.0140.00622.06
8.1.40.0160.00621.93
8.1.30.0150.00520.88
8.1.20.0150.00621.08
8.1.10.0170.00621.08
8.1.00.0160.00621.26
8.0.300.0180.00521.26
8.0.290.0180.00624.76
8.0.280.0180.00524.58
8.0.270.0170.00524.46
8.0.260.0160.00523.63
8.0.250.0160.00523.38
8.0.240.0170.00623.12
8.0.230.0160.00622.86
8.0.220.0170.00522.71
8.0.210.0160.00522.17
8.0.200.0150.00421.79
8.0.190.0160.00622.09
8.0.180.0160.00521.98
8.0.170.0160.00521.77
8.0.160.0150.00521.31
8.0.150.0150.00621.30
8.0.140.0140.00620.85
8.0.130.0130.00620.34
8.0.120.0160.00520.45
8.0.110.0130.00520.14
8.0.100.0120.00519.73
8.0.90.0120.00419.44
8.0.80.0120.00519.70
8.0.70.0130.00419.73
8.0.60.0120.00619.75
8.0.50.0120.00519.72
8.0.30.0140.00519.61
8.0.20.0130.00519.74
8.0.10.0140.00519.79
8.0.00.0110.00519.88
7.4.330.0170.00522.86
7.4.320.0150.00522.23
7.4.300.0150.00621.94
7.4.290.0170.00421.72
7.4.280.0160.00520.96
7.4.270.0150.00520.51
7.4.260.0170.00420.25
7.4.250.0160.00420.16
7.4.240.0140.00519.87
7.4.230.0130.00419.40
7.4.220.0110.00519.39
7.4.210.0120.00419.43
7.4.200.0130.00419.42
7.4.190.0130.00419.49
7.4.180.0120.00519.48
7.4.160.0120.00519.37
7.4.150.0140.00319.33
7.4.140.0120.00519.33
7.4.130.0130.00419.22
7.4.120.0120.00519.21
7.4.110.0130.00419.26
7.4.100.0120.00619.37
7.4.90.0120.00519.23
7.4.80.0120.00519.23
7.4.70.0120.00519.21
7.4.60.0120.00519.22
7.4.50.0120.00519.17
7.4.40.0120.00519.25
7.4.30.0120.00519.26
7.4.20.0130.00419.23
7.4.10.0130.00419.22
7.4.00.0120.00519.23
7.3.330.0160.00420.25
7.3.320.0160.00520.21
7.3.310.0150.00519.70
7.3.300.0140.00419.31
7.3.290.0140.00419.34
7.3.280.0140.00519.29
7.3.270.0130.00519.25
7.3.260.0130.00419.24
7.3.250.0130.00519.27
7.3.240.0130.00519.21
7.3.230.0130.00419.30
7.3.220.0130.00519.17
7.3.210.0130.00519.17
7.3.200.0130.00519.20
7.3.190.0140.00419.16
7.3.180.0130.00418.88
7.3.170.0140.00419.20
7.3.160.0140.00419.17
7.3.150.0140.00419.18
7.3.140.0130.00619.25
7.3.130.0140.00419.18
7.3.120.0130.00519.15
7.3.110.0130.00519.14
7.3.100.0130.00519.16
7.3.90.0130.00519.39
7.3.80.0120.00519.19
7.3.70.0130.00519.21
7.3.60.0140.00419.25
7.3.50.0140.00319.25
7.3.40.0120.00519.24
7.3.30.0130.00419.26
7.3.20.0150.00520.32
7.3.10.0150.00420.25
7.3.00.0140.00520.25

preferences:
18.09 ms | 403 KiB | 5 Q