3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Earth; class Human{} namespace Universe; $human = new \Earth\Human(); echo get_class($human) . PHP_EOL; $class = str_replace('Earth\\', '', get_class($human)); echo $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.3.60.0100.01018.30
8.3.50.0060.01216.49
8.3.40.0070.00718.76
8.3.30.0040.01119.09
8.3.20.0130.00620.08
8.3.10.0040.00422.05
8.3.00.0100.00320.61
8.2.180.0060.00916.75
8.2.170.0120.00322.96
8.2.160.0070.00719.21
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0100.01026.16
8.2.120.0050.00319.53
8.2.110.0110.00020.47
8.2.100.0030.00918.22
8.2.90.0070.00019.05
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0050.00317.80
8.2.50.0030.00618.07
8.2.40.0040.00418.28
8.2.30.0040.00418.07
8.2.20.0000.00817.53
8.2.10.0050.00217.65
8.2.00.0060.00617.63
8.1.270.0040.00421.92
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0070.00323.92
8.1.230.0040.00719.02
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0040.00417.35
8.1.190.0080.00017.54
8.1.180.0030.00518.83
8.1.170.0030.00518.63
8.1.160.0050.00222.09
8.1.150.0000.00718.57
8.1.140.0000.00717.36
8.1.130.0030.00317.92
8.1.120.0000.00717.45
8.1.110.0030.00717.45
8.1.100.0070.00017.40
8.1.90.0040.00417.36
8.1.80.0040.00417.50
8.1.70.0060.00317.43
8.1.60.0000.00817.54
8.1.50.0040.00417.45
8.1.40.0080.00017.51
8.1.30.0040.00417.60
8.1.20.0030.00517.55
8.1.10.0040.00417.60
8.1.00.0000.00817.36
8.0.300.0080.00018.77
8.0.290.0070.00017.18
8.0.280.0030.00318.51
8.0.270.0030.00317.17
8.0.260.0060.00016.82
8.0.250.0030.00316.92
8.0.240.0040.00416.93
8.0.230.0030.00316.81
8.0.220.0000.00716.85
8.0.210.0000.00716.89
8.0.200.0030.00316.82
8.0.190.0000.00816.95
8.0.180.0070.00016.82
8.0.170.0000.00716.96
8.0.160.0060.00316.88
8.0.150.0000.00716.71
8.0.140.0040.00416.88
8.0.130.0050.00013.26
8.0.120.0040.00416.88
8.0.110.0040.00416.80
8.0.100.0070.00016.90
8.0.90.0020.00516.91
8.0.80.0070.00716.81
8.0.70.0040.00416.72
8.0.60.0040.00416.75
8.0.50.0070.00016.76
8.0.30.0080.01017.15
8.0.20.0110.00617.40
8.0.10.0030.00416.83
8.0.00.0080.01016.75
7.4.330.0040.00015.00
7.4.320.0030.00316.37
7.4.300.0030.00316.51
7.4.290.0050.00316.59
7.4.280.0000.00716.60
7.4.270.0000.00716.56
7.4.260.0040.00416.48
7.4.250.0040.00416.46
7.4.240.0030.00416.50
7.4.230.0040.00416.70
7.4.220.0080.00816.64
7.4.210.0090.00716.63
7.4.200.0030.00316.63
7.4.190.0030.00316.64
7.4.160.0120.00416.43
7.4.150.0120.00917.40
7.4.140.0130.01017.86
7.4.130.0090.01116.39
7.4.120.0070.01216.40
7.4.110.0090.00916.43
7.4.100.0120.00916.39
7.4.90.0070.01016.52
7.4.80.0060.01219.39
7.4.70.0060.01016.54
7.4.60.0070.01016.43
7.4.50.0000.00416.41
7.4.40.0040.00822.77
7.4.30.0100.00716.61
7.4.00.0090.00614.90
7.3.330.0050.00013.13
7.3.320.0030.00313.17
7.3.310.0070.00016.15
7.3.300.0030.00316.26
7.3.290.0110.00316.30
7.3.280.0060.01116.29
7.3.270.0130.00317.40
7.3.260.0170.00016.61
7.3.250.0100.00616.26
7.3.240.0070.01316.28
7.3.230.0110.00616.46
7.3.210.0070.01616.70
7.3.200.0100.01019.39
7.3.190.0040.01816.30
7.3.180.0100.00716.61
7.3.170.0030.01416.36
7.3.160.0110.00716.55
7.3.120.0030.01015.05
7.2.330.0110.00616.80
7.2.320.0070.01016.66
7.2.310.0060.01216.60
7.2.300.0070.01316.81
7.2.290.0100.00716.84
7.2.00.0070.00319.57
7.1.200.0090.00315.61
7.1.100.0030.01018.13
7.1.70.0030.00616.97
7.1.60.0060.01019.82
7.1.50.0130.00716.90
7.1.00.0030.06022.41
7.0.200.0000.00716.76
7.0.140.0030.07321.97
7.0.60.0000.08720.01
7.0.50.0030.08317.89
7.0.40.0100.08720.40
7.0.30.0270.06020.21
7.0.20.0270.08020.19
7.0.10.0370.07720.06
7.0.00.0170.06720.16
5.6.280.0030.07321.12
5.6.210.0100.05720.61
5.6.200.0100.03718.28
5.6.190.0070.07320.34
5.6.180.2970.04720.52
5.6.170.0400.05720.69
5.6.160.0100.03720.51
5.6.150.0030.05018.25
5.6.140.0030.04318.18
5.6.130.0030.04018.16
5.6.120.0070.04320.99
5.6.110.0100.05320.98
5.6.100.0170.07021.13
5.6.90.0030.06020.88
5.6.80.0030.06720.53
5.6.70.0200.02320.40
5.5.350.0030.08320.40
5.5.340.0070.07718.07
5.5.330.0100.08020.27
5.5.320.0270.07720.20
5.5.310.0270.07020.36
5.5.300.0030.03718.08
5.5.290.0000.08317.98
5.5.280.0030.05320.68
5.5.270.0000.08720.84
5.5.260.0130.07320.84
5.5.250.0100.08720.61
5.5.240.0030.07320.15
5.4.450.0300.07319.41
5.4.440.0200.06319.29
5.4.430.0330.06019.48
5.4.420.0200.03719.48
5.4.410.0170.04019.07
5.4.400.0170.03719.24
5.4.390.0270.06719.22
5.4.380.0370.06019.24
5.4.370.0400.06019.18
5.4.360.0270.03719.24
5.4.350.0300.03319.07
5.4.340.0270.07719.19
5.4.320.0130.04319.18
5.4.310.0300.05719.13
5.4.300.0270.03318.98
5.4.290.0300.03319.21
5.4.280.0170.04319.18
5.4.270.0200.03719.30
5.4.260.0430.05318.83
5.4.250.0270.06318.99
5.4.240.0270.04019.10
5.4.230.0200.03719.11
5.4.220.0270.07319.12
5.4.210.0230.05719.14
5.4.200.0230.04018.83
5.4.190.0230.05018.83
5.4.180.0270.06719.14
5.4.170.0270.06718.98
5.4.160.0200.06719.20
5.4.150.0200.07719.18
5.4.140.0170.06316.50
5.4.130.0130.04716.41
5.4.120.0270.06316.52
5.4.110.0230.03316.28
5.4.100.0230.05016.36
5.4.90.0300.05316.37
5.4.80.0330.04316.52
5.4.70.0330.06716.45
5.4.60.0200.07316.58
5.4.50.0430.06016.53
5.4.40.0200.07016.54
5.4.30.0200.06716.37
5.4.20.0300.06316.53
5.4.10.0330.03316.53
5.4.00.0330.07316.10
5.3.290.0200.04014.55
5.3.280.0300.03714.55
5.3.270.0230.04014.62
5.3.260.0300.03714.62
5.3.250.0230.06014.57
5.3.240.0330.03014.60
5.3.230.0200.07014.66
5.3.220.0300.04714.72
5.3.210.0330.06714.53
5.3.200.0270.03714.48
5.3.190.0230.05014.57
5.3.180.0330.07014.61
5.3.170.0230.05314.57
5.3.160.0230.05014.57
5.3.150.0300.05314.53
5.3.140.0370.05314.77
5.3.130.0370.07014.54
5.3.120.0300.07014.63
5.3.110.0370.04314.55
5.3.100.0330.06713.94
5.3.90.0300.06714.16
5.3.80.0230.04714.02
5.3.70.0270.04014.10
5.3.60.0200.04014.00
5.3.50.0400.06014.05
5.3.40.0370.06713.84
5.3.30.0330.03013.91
5.3.20.0200.03713.74
5.3.10.0270.06013.67
5.3.00.0300.06013.61
5.2.170.0230.06011.09
5.2.160.0230.04011.15
5.2.150.0100.04710.98
5.2.140.0200.03011.20
5.2.130.0130.06010.99
5.2.120.0170.03311.01
5.2.110.0170.03310.96
5.2.100.0200.02310.95
5.2.90.0330.02011.18
5.2.80.0200.03311.10
5.2.70.0070.03711.00
5.2.60.0200.05710.88
5.2.50.0170.03310.87
5.2.40.0170.05710.84
5.2.30.0170.03310.82
5.2.20.0100.03010.86
5.2.10.0170.06010.77
5.2.00.0070.04710.87
5.1.60.0130.05010.04
5.1.50.0170.0209.87
5.1.40.0130.02310.06
5.1.30.0200.02710.41
5.1.20.0170.02010.30
5.1.10.0070.0379.98
5.1.00.0170.02010.04
5.0.50.0070.0208.44
5.0.40.0070.0178.39
5.0.30.0100.0278.38
5.0.20.0070.0208.36
5.0.10.0100.0138.36
5.0.00.0030.0338.36
4.4.90.0070.0138.36
4.4.80.0100.0108.36
4.4.70.0070.0278.36
4.4.60.0070.0138.36
4.4.50.0100.0138.36
4.4.40.0030.0278.36
4.4.30.0100.0178.36
4.4.20.0030.0178.36
4.4.10.0100.0178.36
4.4.00.0070.0238.36
4.3.110.0100.0108.36
4.3.100.0100.0178.36
4.3.90.0070.0178.36
4.3.80.0100.0238.36
4.3.70.0130.0238.36
4.3.60.0070.0178.36
4.3.50.0070.0178.36
4.3.40.0030.0278.36
4.3.30.0000.0178.36
4.3.20.0070.0208.36
4.3.10.0030.0138.36
4.3.00.0070.0178.36

preferences:
74.39 ms | 400 KiB | 5 Q