3v4l.org

run code in 300+ PHP versions simultaneously
<?php $human = (object) [ 'name' => 'John Doe', 'age' => 25, 'getName' => function() { global $human; var_dump($human->name); }, 'getAge' => function() { global $human; var_dump($human->age); }, ]; ($human->getName)(); ($human->getAge)();

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.10.0140.00718.82
8.5.00.0140.00820.09
8.4.160.0180.00823.98
8.4.150.0020.00014.05
8.4.140.0120.01017.60
8.4.130.0090.01217.68
8.4.120.0130.00720.15
8.4.110.0110.00918.75
8.4.100.0130.00817.90
8.4.90.0140.00618.83
8.4.80.0050.00417.71
8.4.70.0140.00617.78
8.4.60.0110.00924.34
8.4.50.0090.01118.48
8.4.40.0060.00322.32
8.4.30.0100.01018.61
8.4.20.0060.00917.78
8.4.10.0030.00622.04
8.3.280.0130.00718.38
8.3.270.0160.01116.70
8.3.260.0110.00816.54
8.3.250.0100.00518.97
8.3.240.0070.01116.46
8.3.230.0110.00916.48
8.3.220.0090.00618.88
8.3.210.0140.00416.49
8.3.200.0050.00416.64
8.3.190.0110.00817.08
8.3.180.0130.00616.61
8.3.170.0100.01020.68
8.3.160.0090.00917.29
8.3.150.0040.00417.42
8.3.140.0070.01116.80
8.3.130.0030.00718.41
8.3.120.0040.00418.87
8.3.110.0130.00720.94
8.3.100.0030.00616.50
8.3.90.0060.00318.49
8.3.80.0040.00816.75
8.3.70.0040.01116.58
8.3.60.0080.01216.50
8.3.50.0120.00620.44
8.3.40.0150.00318.63
8.3.30.0040.01119.25
8.3.20.0030.00624.18
8.3.10.0050.00224.66
8.3.00.0000.00826.16
8.2.290.0110.00820.39
8.2.280.0050.00418.31
8.2.270.0160.00319.14
8.2.260.0030.00516.61
8.2.250.0060.00316.78
8.2.240.0060.00318.81
8.2.230.0040.00422.58
8.2.220.0030.00637.54
8.2.210.0030.00626.77
8.2.200.0030.00616.50
8.2.190.0090.00616.75
8.2.180.0120.00925.92
8.2.170.0040.01118.95
8.2.160.0100.01022.96
8.2.150.0080.00025.66
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00826.16
8.2.110.0000.00922.23
8.2.100.0070.00417.72
8.2.90.0080.00017.75
8.2.80.0040.00418.91
8.2.70.0040.00417.75
8.2.60.0030.00518.05
8.2.50.0030.00518.07
8.2.40.0000.00718.02
8.2.30.0040.00418.19
8.2.20.0040.00420.43
8.2.10.0040.00418.13
8.2.00.0000.00919.25
8.1.330.0090.01022.08
8.1.320.0090.01015.97
8.1.310.0090.00618.58
8.1.300.0100.01018.44
8.1.290.0090.00018.88
8.1.280.0100.00725.92
8.1.270.0040.00423.99
8.1.260.0020.00526.35
8.1.250.0090.00028.09
8.1.240.0090.00020.53
8.1.230.0040.00717.89
8.1.220.0030.00517.79
8.1.210.0030.00618.77
8.1.200.0060.00317.23
8.1.190.0040.00417.35
8.1.180.0070.00518.10
8.1.170.0030.00518.65
8.1.160.0070.00018.93
8.1.150.0070.00018.59
8.1.140.0000.00817.44
8.1.130.0070.00018.74
8.1.120.0040.00417.50
8.1.110.0070.00017.32
8.1.100.0000.00717.29
8.1.90.0000.00717.38
8.1.80.0070.00017.46
8.1.70.0070.00017.46
8.1.60.0080.00017.55
8.1.50.0090.00317.42
8.1.40.0060.00917.51
8.1.30.0200.00317.50
8.1.20.0240.00017.60
8.1.10.0210.00417.38
8.1.00.0140.01017.43
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0030.00318.40
8.0.270.0050.00317.99
8.0.260.0070.00018.40
8.0.250.0090.00016.89
8.0.240.0000.00716.88
8.0.230.0000.00716.89
8.0.220.0040.00416.76
8.0.210.0040.00416.75
8.0.200.0030.00316.95
8.0.190.0000.00816.93
8.0.180.0180.00016.93
8.0.170.0110.00816.88
8.0.160.0070.01016.73
8.0.150.0170.00016.80
8.0.140.0170.00316.82
8.0.130.0140.00716.90
8.0.120.0090.00216.83
8.0.110.0040.00816.82
8.0.100.0160.00316.85
8.0.90.0180.00316.87
8.0.80.0080.01216.72
8.0.70.0170.00316.83
8.0.60.0100.01016.71
8.0.50.0140.00616.77
8.0.30.0210.00016.90
8.0.20.0190.00016.95
8.0.10.0120.00817.04
7.4.330.0020.00215.55
7.4.320.0000.00616.52
7.4.300.0050.00216.62
7.4.290.0110.01116.45
7.4.280.0150.00016.59
7.4.270.0180.00016.42
7.4.260.0160.00016.63
7.4.250.0150.00316.55
7.4.240.0050.01116.32
7.4.230.0210.00316.60
7.4.220.0120.00916.60
7.4.210.0160.00416.49
7.4.200.0170.00216.55
7.4.190.0120.00516.62
7.4.180.0120.00816.63
7.4.160.0150.00316.68
7.4.150.0160.00316.50
7.4.140.0150.00316.33
7.4.130.0080.00816.37
7.4.120.0100.00516.39
7.4.110.0170.00016.29
7.4.100.0160.00016.39
7.4.90.0060.00616.47
7.4.80.0110.00716.42
7.4.70.0140.00316.38
7.4.60.0170.00016.28
7.4.50.0170.00316.33
7.4.40.0230.00016.23
7.4.30.0080.00816.42
7.4.20.0080.01416.28
7.4.10.0090.00316.40
7.4.00.0030.01116.40

preferences:
34.69 ms | 403 KiB | 5 Q