3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $a = 'test'; private $b = 'asdasd'; } var_dump((array) new Test);

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.0170.00016.63
8.3.50.0210.00416.36
8.3.40.0120.00318.59
8.3.30.0140.00018.59
8.3.20.0080.00021.73
8.3.10.0080.00023.39
8.3.00.0000.00819.66
8.2.180.0100.01018.29
8.2.170.0100.00322.96
8.2.160.0090.00620.38
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00722.08
8.2.120.0040.00426.35
8.2.110.0070.00419.21
8.2.100.0040.00819.39
8.2.90.0050.00317.72
8.2.80.0050.00317.97
8.2.70.0040.00417.47
8.2.60.0030.00617.80
8.2.50.0030.00618.10
8.2.40.0000.00820.60
8.2.30.0040.00420.87
8.2.20.0000.00717.87
8.2.10.0070.00017.92
8.2.00.0070.00017.86
8.1.280.0060.01125.92
8.1.270.0070.00020.57
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.34
8.1.230.0060.00621.04
8.1.220.0030.00617.74
8.1.210.0090.00018.77
8.1.200.0000.00817.10
8.1.190.0000.00817.11
8.1.180.0030.00618.10
8.1.170.0050.00318.46
8.1.160.0000.00718.82
8.1.150.0040.00418.74
8.1.140.0040.00419.35
8.1.130.0070.00018.67
8.1.120.0000.00717.35
8.1.110.0000.00917.21
8.1.100.0040.00417.21
8.1.90.0040.00417.39
8.1.80.0030.00417.41
8.1.70.0100.00017.44
8.1.60.0040.00417.40
8.1.50.0040.00417.39
8.1.40.0050.00317.35
8.1.30.0040.00417.45
8.1.20.0060.00317.51
8.1.10.0040.00417.50
8.1.00.0080.00417.38
8.0.300.0070.00019.93
8.0.290.0000.00716.63
8.0.280.0040.00418.24
8.0.270.0080.00017.07
8.0.260.0030.00318.73
8.0.250.0020.00516.91
8.0.240.0040.00416.86
8.0.230.0030.00516.80
8.0.220.0000.00716.68
8.0.210.0030.00316.68
8.0.200.0000.00616.73
8.0.190.0040.00416.71
8.0.180.0040.00416.78
8.0.170.0040.00416.67
8.0.160.0030.00516.78
8.0.150.0000.00716.71
8.0.140.0000.00716.61
8.0.130.0000.00513.14
8.0.120.0030.00516.74
8.0.110.0070.00016.57
8.0.100.0000.00716.73
8.0.90.0000.00716.79
8.0.80.0150.00616.78
8.0.70.0050.00216.70
8.0.60.0040.00416.63
8.0.50.0040.00416.69
8.0.30.0100.00616.94
8.0.20.0060.01217.40
8.0.10.0040.00416.72
8.0.00.0090.00916.57
7.4.330.0030.00315.55
7.4.320.0070.00016.54
7.4.300.0030.00316.43
7.4.290.0030.00616.52
7.4.280.0040.00416.47
7.4.270.0030.00316.32
7.4.260.0040.00416.42
7.4.250.0030.00516.51
7.4.240.0030.00516.48
7.4.230.0070.00016.42
7.4.220.0090.01516.38
7.4.210.0070.00716.31
7.4.200.0000.00716.63
7.4.160.0080.00916.39
7.4.150.0060.01117.40
7.4.140.0120.00917.86
7.4.130.0070.01516.59
7.4.120.0160.00816.39
7.4.110.0120.00416.32
7.4.100.0070.01116.39
7.4.90.0060.01016.29
7.4.80.0120.00619.39
7.4.70.0040.01416.27
7.4.60.0150.00316.43
7.4.50.0090.00616.23
7.4.40.0030.01316.47
7.4.30.0030.01216.58
7.4.00.0030.01515.04
7.3.330.0000.00513.20
7.3.320.0000.00613.09
7.3.310.0070.00016.18
7.3.300.0030.00316.27
7.3.290.0050.01216.21
7.3.280.0100.00716.21
7.3.270.0100.00717.40
7.3.260.0110.01116.44
7.3.250.0100.00816.38
7.3.240.0120.00816.43
7.3.230.0120.00316.46
7.3.210.0090.00916.19
7.3.200.0160.00616.36
7.3.190.0070.01016.48
7.3.180.0100.00616.27
7.3.170.0060.00916.12
7.3.160.0030.01916.31
7.2.330.0080.00816.53
7.2.320.0140.00716.23
7.2.310.0100.00716.34
7.2.300.0110.00916.23
7.2.290.0080.00816.63
7.2.60.0040.00716.72
7.2.50.0050.00316.45
7.1.200.0000.00915.59
7.1.70.0030.01016.96
7.1.60.0170.02034.92
7.1.50.0170.02334.64
7.1.40.0270.01034.28
7.1.30.0130.01334.56
7.1.20.0100.02034.34
7.1.10.0000.01316.52
7.1.00.0030.01016.52
7.0.200.0000.01716.62
7.0.190.0070.01016.57
7.0.180.2800.01016.08
7.0.170.0100.00316.10
7.0.160.0030.01016.14
7.0.150.0000.01316.18
7.0.140.0030.01315.98
7.0.130.0030.01316.40
7.0.120.0000.01316.36
7.0.110.0000.01316.00
7.0.100.0100.01016.29
7.0.90.0030.01016.18
7.0.80.0130.00716.38
7.0.70.0030.01016.30
7.0.60.0030.01016.00
7.0.50.0030.01316.31
7.0.40.0030.01016.68
7.0.30.0070.00716.51
7.0.20.0000.01316.61
7.0.10.0030.01016.47
7.0.00.0070.00716.31

preferences:
59.21 ms | 400 KiB | 5 Q