3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function run($name, stdClass $age) { echo $name . serialize($age); } } class B extends A { public function run() { echo "hi"; } } $user = new B(); $user->run();

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.70.0070.01118.68
8.3.60.0110.01116.50
8.3.50.0140.00216.41
8.3.40.0160.00618.77
8.3.30.0140.00018.68
8.3.20.0040.00420.21
8.3.10.0050.00321.76
8.3.00.0040.00419.21
8.2.180.0100.00718.14
8.2.170.0070.01022.96
8.2.160.0130.00020.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0090.00921.09
8.2.120.0070.00026.35
8.2.110.0000.01021.18
8.2.100.0040.00817.89
8.2.90.0000.00818.96
8.2.80.0020.00517.97
8.2.70.0040.00417.38
8.2.60.0000.00717.80
8.2.50.0040.00418.10
8.2.40.0040.00420.59
8.2.30.0040.00420.95
8.2.20.0000.00817.80
8.2.10.0000.00717.91
8.2.00.0000.00718.03
8.1.280.0110.00325.92
8.1.270.0040.00422.18
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0170.00323.98
8.1.230.0080.00419.16
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.00
8.1.190.0090.00017.22
8.1.180.0000.00718.10
8.1.170.0080.00018.57
8.1.160.0080.00018.98
8.1.150.0000.00820.55
8.1.140.0000.00819.44
8.1.130.0000.00718.74
8.1.120.0050.00217.37
8.1.110.0030.00517.35
8.1.100.0040.00417.31
8.1.90.0000.00717.23
8.1.80.0030.00317.21
8.1.70.0040.00417.31
8.1.60.0050.00317.46
8.1.50.0080.00017.40
8.1.40.0000.00717.34
8.1.30.0030.00517.40
8.1.20.0050.00617.47
8.1.10.0060.00317.34
8.1.00.0040.00417.32
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0050.00218.30
8.0.270.0050.00317.05
8.0.260.0030.00316.74
8.0.250.0040.00416.91
8.0.240.0040.00416.87
8.0.230.0040.00416.90
8.0.220.0030.00316.85
8.0.210.0070.00016.84
8.0.200.0030.00616.94
8.0.190.0050.00616.94
8.0.180.0050.00216.89
8.0.170.0000.00716.88
8.0.160.0000.00716.83
8.0.150.0040.00416.69
8.0.140.0000.00716.69
8.0.130.0030.00613.27
8.0.120.0040.00416.77
8.0.110.0070.00016.82
8.0.100.0040.00416.93
8.0.90.0040.00416.69
8.0.80.0070.00716.80
8.0.70.0040.00416.84
8.0.60.0040.00416.93
8.0.50.0070.00016.61
8.0.30.0090.00816.94
8.0.20.0120.01117.40
8.0.10.0020.00516.90
8.0.00.0090.00816.67
7.4.330.0020.00215.55
7.4.320.0060.00016.36
7.4.300.0000.00616.50
7.4.290.0000.00716.51
7.4.280.0050.00316.39
7.4.270.0030.00316.58
7.4.260.0070.00016.50
7.4.250.0030.00516.47
7.4.240.0030.00316.54
7.4.230.0000.00716.49
7.4.220.0120.00816.48
7.4.210.0060.00916.64
7.4.200.0040.00416.43
7.4.160.0110.00616.64
7.4.150.0100.01017.40
7.4.140.0140.00617.86
7.4.130.0160.01516.66
7.4.120.0140.00416.59
7.4.110.0110.01116.46
7.4.100.0130.01016.56
7.4.90.0120.00616.45
7.4.80.0080.01619.39
7.4.70.0110.00616.63
7.4.60.0060.01116.66
7.4.50.0120.00216.46
7.4.40.0090.01216.55
7.4.30.0130.00316.80
7.4.00.0080.00814.84
7.3.330.0020.00213.22
7.3.320.0000.00513.04
7.3.310.0030.00316.17
7.3.300.0060.00016.17
7.3.290.0070.00916.27
7.3.280.0070.00916.29
7.3.270.0110.00717.40
7.3.260.0080.00916.45
7.3.250.0090.00916.40
7.3.240.0120.00516.28
7.3.230.0160.00616.32
7.3.210.0030.01316.35
7.3.200.0000.01716.36
7.3.190.0060.01316.22
7.3.180.0090.00616.46
7.3.170.0100.00716.27
7.3.160.0150.00416.38
7.2.330.0060.01116.70
7.2.320.0170.00016.36
7.2.310.0090.00616.43
7.2.300.0100.01316.68
7.2.290.0090.00816.62
7.2.60.0040.00716.96
7.2.00.0040.01419.29
7.1.200.0060.00615.65
7.1.100.0030.00617.79
7.1.70.0030.00617.10
7.1.60.0030.00717.12
7.1.50.0000.01016.86
7.1.40.0030.00716.47
7.1.30.0000.01116.47
7.1.20.0030.00916.78
7.1.10.0040.00416.47
7.1.00.0030.00616.47
7.0.200.0060.00316.69
7.0.190.0000.01116.82
7.0.180.0050.00216.47
7.0.170.0000.00716.47
7.0.160.0000.00816.47
7.0.150.0030.00616.47
7.0.140.0000.01016.47
7.0.130.0030.00516.47
7.0.120.0040.00416.47
7.0.110.0000.00816.47
7.0.100.0000.00816.47
7.0.90.0040.00416.47
7.0.80.0000.01016.47
7.0.70.0000.00716.47
7.0.60.0030.00616.47
7.0.50.0000.00916.47
7.0.40.0060.00616.47
7.0.30.0000.00816.47
7.0.20.0000.00716.47
7.0.10.0030.00516.47
7.0.00.0080.00016.47
5.6.300.0000.04721.00
5.6.290.0060.04520.84
5.6.280.0030.04120.94
5.6.270.0030.04621.04
5.6.260.0290.02920.80
5.6.250.0000.04720.99
5.6.240.0070.04220.79
5.6.230.0060.04120.90
5.6.220.0100.03520.80
5.6.210.0030.04521.03
5.6.200.0100.04720.89
5.6.190.0000.04421.00
5.6.180.0190.03920.92
5.6.170.0060.04220.80
5.6.160.0030.05220.79
5.6.150.0030.04520.91
5.6.140.0070.04120.99
5.6.130.0030.04420.78
5.6.120.0030.04421.01
5.6.110.0030.04320.98
5.6.100.0070.03720.94
5.6.90.0030.04420.77
5.6.80.0030.04120.21
5.6.70.0000.04320.20
5.6.60.0070.04020.04
5.6.50.0030.04020.38
5.6.40.0030.05020.17
5.6.30.0070.04020.14
5.6.20.0000.04920.14
5.6.10.0030.04620.14
5.6.00.0030.04120.04
5.5.380.0060.03917.63
5.5.370.0030.03817.56
5.5.360.0030.03917.57
5.5.350.0000.04517.53
5.5.340.0030.04418.09
5.5.330.0000.04818.03
5.5.320.0030.04418.12
5.5.310.0030.04418.06
5.5.300.0030.03817.84
5.5.290.0000.05117.99
5.5.280.0130.04317.71
5.5.270.0000.04418.13
5.5.260.0000.04717.71
5.5.250.0030.04017.82
5.5.240.0030.03917.13
5.5.230.0070.03717.21
5.5.220.0000.04417.41
5.5.210.0030.03917.41
5.5.200.0000.04417.54
5.5.190.0000.04517.44
5.5.180.0030.04317.45
5.5.160.0030.03917.05
5.5.150.0030.04217.03
5.5.140.0000.04717.35
5.5.130.0030.04217.48
5.5.120.0030.03717.35
5.5.110.0030.03817.09
5.5.100.0030.04517.35
5.5.90.0070.03317.43
5.5.80.0030.06417.33
5.5.70.0000.04717.27
5.5.60.0030.03817.25
5.5.50.0030.06017.07
5.5.40.0100.03316.95
5.5.30.0030.04217.37
5.5.20.0070.04817.24
5.5.10.0030.04017.10
5.5.00.0030.03817.32
5.4.450.0030.04319.39
5.4.440.0100.03719.57
5.4.430.0000.04619.19
5.4.420.0000.04619.38
5.4.410.0000.04919.40
5.4.400.0030.03819.09
5.4.390.0030.04019.09
5.4.380.0220.03219.00
5.4.370.0190.02519.21
5.4.360.0030.04619.14
5.4.350.0030.04219.07
5.4.340.0030.04719.07
5.4.320.0070.04019.20
5.4.310.0030.03819.01
5.4.300.0000.04319.08
5.4.290.0000.04418.97
5.4.280.0000.04319.13
5.4.270.0000.03918.98
5.4.260.0030.04119.08
5.4.250.0070.04119.10
5.4.240.0000.04518.98
5.4.230.0030.04419.03
5.4.220.0370.04119.05
5.4.210.0000.04819.23
5.4.200.0000.04118.91
5.4.190.0000.04518.97
5.4.180.0000.04318.97
5.4.170.0030.03618.94
5.4.160.0000.04119.07
5.4.150.0000.04319.21
5.4.140.0000.04716.57
5.4.130.0030.03716.50
5.4.120.0070.03016.82
5.4.110.0000.03716.47
5.4.100.0070.03816.69
5.4.90.0000.04016.80
5.4.80.0030.04216.82
5.4.70.0000.04516.67
5.4.60.0070.03916.73
5.4.50.0070.03316.70
5.4.40.0060.03116.77
5.4.30.0030.03516.74
5.4.20.0100.03316.59
5.4.10.0030.07716.47
5.4.00.0000.04016.47
5.3.290.0300.04716.47
5.3.280.0000.04016.47
5.3.270.0030.03916.47
5.3.260.0030.04916.47
5.3.250.0130.03916.47
5.3.240.0060.03516.47
5.3.230.0000.04016.47
5.3.220.0130.03616.47
5.3.210.0000.05116.47
5.3.200.0000.04416.47
5.3.190.0030.03816.47
5.3.180.0070.03116.47
5.3.170.0060.03916.47
5.3.160.0030.04316.47
5.3.150.0030.04716.47
5.3.140.0000.04316.47
5.3.130.0070.03616.47
5.3.120.0000.04216.47
5.3.110.0000.07816.47
5.3.100.0000.04016.47
5.3.90.0030.04216.47
5.3.80.0060.03816.47
5.3.70.0030.03416.47
5.3.60.0000.03616.47
5.3.50.0000.04016.47
5.3.40.0170.03416.47
5.3.30.0000.04316.47
5.3.20.0030.03416.47
5.3.10.0030.03216.47
5.3.00.0000.04016.47
5.2.170.0000.03316.47
5.2.160.0030.03216.47
5.2.150.0030.03016.47
5.2.140.0000.03716.47
5.2.130.0000.03316.47
5.2.120.0000.02916.47
5.2.110.0030.02716.47
5.2.100.0000.03216.47
5.2.90.0030.02716.47
5.2.80.0030.03016.47
5.2.70.0000.03016.47
5.2.60.0030.03616.47
5.2.50.0000.03416.47
5.2.40.0070.05216.47
5.2.30.0030.04316.47
5.2.20.0030.02816.47
5.2.10.0030.03716.47
5.2.00.0030.03116.47
5.1.60.0060.02216.47
5.1.50.0000.02516.47
5.1.40.0000.03316.47
5.1.30.0040.02616.47
5.1.20.0040.02516.47
5.1.10.0000.02916.47
5.1.00.0000.02916.47
5.0.50.0000.02216.47
5.0.40.0000.02316.47
5.0.30.0030.03116.47
5.0.20.0000.02216.47
5.0.10.0030.03316.47
5.0.00.0000.03316.47
4.4.90.0000.01916.47
4.4.80.0030.01316.47
4.4.70.0040.01416.47
4.4.60.0000.02216.47
4.4.50.0000.01616.47
4.4.40.0000.04816.47
4.4.30.0110.01116.47
4.4.20.0030.01516.47
4.4.10.0000.01916.47
4.4.00.0000.02516.47
4.3.110.0000.01716.47
4.3.100.0000.01716.47
4.3.90.0000.01616.47
4.3.80.0000.04116.47
4.3.70.0030.01316.47
4.3.60.0000.01716.47
4.3.50.0000.01616.47
4.3.40.0000.02716.47
4.3.30.0030.01616.47
4.3.20.0000.01716.47
4.3.10.0070.01016.47
4.3.00.0000.01716.47

preferences:
44.92 ms | 401 KiB | 5 Q