3v4l.org

run code in 300+ PHP versions simultaneously
<?php class user_message { public $message = 'Hello All, I am '; public function introduce($name) { return $this->message.$name; } } $mymessage = New user_message(); echo $mymessage->introduce('Scott'); ?>

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.0110.00416.63
8.3.50.0090.00617.98
8.3.40.0120.00618.72
8.3.30.0100.00319.01
8.3.20.0070.00020.16
8.3.10.0070.00023.48
8.3.00.0080.00019.23
8.2.180.0070.01418.17
8.2.170.0120.00622.96
8.2.160.0040.00920.39
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0110.00426.16
8.2.120.0040.00422.25
8.2.110.0090.00022.19
8.2.100.0120.00017.78
8.2.90.0030.00617.75
8.2.80.0050.00517.97
8.2.70.0050.00317.90
8.2.60.0060.00317.80
8.2.50.0040.00418.10
8.2.40.0000.00822.17
8.2.30.0040.00418.13
8.2.20.0050.00317.74
8.2.10.0000.00718.01
8.2.00.0030.00617.50
8.1.270.0040.00422.06
8.1.260.0030.00526.35
8.1.250.0000.00828.09
8.1.240.0030.00722.52
8.1.230.0090.00320.80
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0100.00017.25
8.1.190.0140.00016.88
8.1.180.0000.00818.10
8.1.170.0060.00318.59
8.1.160.0000.00722.02
8.1.150.0080.00018.61
8.1.140.0040.00417.46
8.1.130.0000.00717.77
8.1.120.0040.00417.50
8.1.110.0070.00317.47
8.1.100.0090.00017.37
8.1.90.0000.00717.34
8.1.80.0030.00317.43
8.1.70.0060.00317.44
8.1.60.0050.00217.61
8.1.50.0050.00317.39
8.1.40.0000.00817.42
8.1.30.0040.00417.47
8.1.20.0040.00417.71
8.1.10.0050.00317.43
8.1.00.0040.00417.35
8.0.300.0040.00419.68
8.0.290.0000.00716.63
8.0.280.0070.00018.40
8.0.270.0070.00017.20
8.0.260.0030.00317.18
8.0.250.0000.00716.96
8.0.240.0040.00416.97
8.0.230.0030.00317.01
8.0.220.0030.00316.83
8.0.210.0030.00316.89
8.0.200.0070.00016.94
8.0.190.0000.00817.01
8.0.180.0000.00716.91
8.0.170.0070.00016.91
8.0.160.0000.00716.82
8.0.150.0030.00316.79
8.0.140.0070.00016.85
8.0.130.0000.00513.29
8.0.120.0040.00416.78
8.0.110.0040.00416.94
8.0.100.0040.00416.91
8.0.90.0030.00316.94
8.0.80.0100.00716.92
8.0.70.0000.00716.89
8.0.60.0000.00717.01
8.0.50.0040.00416.81
8.0.30.0070.01017.29
8.0.20.0150.00717.40
8.0.10.0020.00516.79
8.0.00.0090.00816.53
7.4.330.0000.00515.13
7.4.320.0000.00616.52
7.4.300.0030.00316.45
7.4.290.0070.00316.51
7.4.280.0030.00316.45
7.4.270.0040.00416.58
7.4.260.0030.00316.45
7.4.250.0070.00016.55
7.4.240.0030.00316.55
7.4.230.0040.00316.35
7.4.220.0110.00716.57
7.4.210.0060.01216.60
7.4.200.0000.00716.49
7.4.190.0070.00016.57
7.4.160.0030.01316.46
7.4.150.0120.00617.40
7.4.140.0090.00917.86
7.4.130.0050.01216.46
7.4.120.0090.00816.46
7.4.110.0060.01316.52
7.4.100.0140.00716.67
7.4.90.0080.01516.68
7.4.80.0110.01119.39
7.4.70.0130.00516.28
7.4.60.0110.00516.48
7.4.50.0030.00516.15
7.4.40.0030.01422.77
7.4.30.0060.00916.56
7.4.10.0080.00815.00
7.4.00.0080.00814.78
7.3.330.0030.00313.19
7.3.320.0030.00313.11
7.3.310.0070.00016.29
7.3.300.0040.00416.25
7.3.290.0030.01316.30
7.3.280.0080.00716.21
7.3.270.0130.00317.40
7.3.260.0180.00316.43
7.3.250.0080.00816.37
7.3.240.0190.00316.30
7.3.230.0160.00316.44
7.3.210.0140.01216.31
7.3.200.0130.01119.39
7.3.190.0120.00616.31
7.3.180.0100.00716.41
7.3.170.0030.01316.44
7.3.160.0100.00516.23
7.3.130.0130.00714.98
7.3.120.0070.01014.84
7.3.110.0070.01014.78
7.3.100.0030.01014.52
7.3.90.0040.01214.78
7.3.80.0070.00714.90
7.3.70.0080.00714.78
7.3.60.0030.01014.72
7.3.50.0040.01114.84
7.3.40.0030.00814.74
7.3.30.0030.01014.68
7.3.20.0100.00516.57
7.3.10.0030.01316.44
7.3.00.0050.00916.52
7.2.330.0070.01016.86
7.2.320.0140.00416.30
7.2.310.0060.01616.47
7.2.300.0070.01116.78
7.2.290.0060.01116.73
7.2.260.0120.00615.25
7.2.250.0100.01015.03
7.2.240.0110.00615.04
7.2.230.0060.00615.19
7.2.220.0120.00715.18
7.2.210.0040.00615.13
7.2.200.0090.00515.23
7.2.190.0060.00814.99
7.2.180.0070.00514.93
7.2.170.0070.00714.96
7.2.160.0020.01214.99
7.2.150.0020.01216.80
7.2.140.0080.01016.80
7.2.130.0050.00716.93
7.2.120.0070.00816.79
7.2.110.0080.00417.11
7.2.100.0050.00916.90
7.2.90.0070.00516.98
7.2.80.0090.00516.93
7.2.70.0050.00816.72
7.2.60.0050.00816.88
7.2.50.0060.00816.85
7.2.40.0050.01016.93
7.2.30.0090.00717.01
7.2.20.0070.00916.97
7.2.10.0100.00516.85
7.2.00.0110.00917.60
7.1.330.0050.00815.67
7.1.320.0090.00715.64
7.1.310.0030.01215.49
7.1.300.0110.00515.52
7.1.290.0000.01115.52
7.1.280.0030.01015.71
7.1.270.0070.00515.53
7.1.260.0050.01215.72
7.1.250.0030.00815.40
7.1.240.0080.00615.88
7.1.230.0040.00815.55
7.1.220.0000.01415.85
7.1.210.0030.00715.88
7.1.200.0070.00715.84
7.1.190.0030.01015.80
7.1.180.0030.00615.83
7.1.170.0110.00315.58
7.1.160.0090.00615.51
7.1.150.0100.00315.52
7.1.140.0050.00415.78
7.1.130.0030.00915.49
7.1.120.0030.01315.50
7.1.110.0090.00615.64
7.1.100.0040.00816.57
7.1.90.0080.00015.58
7.1.80.0070.00715.84
7.1.70.0020.00716.25
7.1.60.0100.00917.65
7.1.50.0070.01015.92
7.1.40.0070.00815.50
7.1.30.0040.01115.50
7.1.20.0090.00615.44
7.1.10.0030.01015.70
7.1.00.0000.04418.87
7.0.330.0070.00615.08
7.0.320.0060.00615.25
7.0.310.0070.00415.30
7.0.300.0030.01015.41
7.0.290.0080.00515.46
7.0.280.0050.00915.40
7.0.270.0000.01215.13
7.0.260.0030.01015.34
7.0.250.0060.00615.48
7.0.240.0060.00615.47
7.0.230.0030.00915.23
7.0.220.0100.00015.34
7.0.210.0040.00815.26
7.0.200.0050.00515.17
7.0.190.0070.00715.38
7.0.180.0000.01615.23
7.0.170.0040.01515.23
7.0.160.0100.00715.43
7.0.150.0090.00315.48
7.0.140.0040.03918.60
7.0.130.0000.01015.07
7.0.120.0000.01315.34
7.0.110.0060.00615.23
7.0.100.0000.00915.53
7.0.90.0030.01015.27
7.0.80.0000.00815.35
7.0.70.0110.00315.46
7.0.60.0110.04017.54
7.0.50.0080.02916.58
7.0.40.0100.02016.73
7.0.30.0100.03316.70
7.0.20.0170.03716.82
7.0.10.0060.04516.83
7.0.00.0100.04016.70
5.6.400.0000.01314.17
5.6.390.0040.00814.18
5.6.380.0000.00814.50
5.6.370.0000.00914.46
5.6.360.0030.01214.07
5.6.350.0040.00814.28
5.6.340.0060.00914.37
5.6.330.0100.00014.13
5.6.320.0070.00714.59
5.6.310.0000.01414.46
5.6.300.0070.00714.27
5.6.290.0060.01014.20
5.6.280.0080.03717.55
5.6.270.0080.00314.40
5.6.260.0000.00914.27
5.6.250.0000.01214.33
5.6.240.0070.00314.39
5.6.230.0110.00314.23
5.6.220.0080.00414.39
5.6.210.0020.04917.58
5.6.200.0030.03516.25
5.6.190.0070.02517.36
5.6.180.0200.03817.34
5.6.170.0170.04517.25
5.6.160.0050.05217.55
5.6.150.0060.02316.16
5.6.140.0080.04316.38
5.6.130.0020.04016.17
5.6.120.0100.02117.55
5.6.110.0180.03217.66
5.6.100.0080.04117.63
5.6.90.0100.02817.52
5.6.80.0020.04617.27
5.6.70.1900.02017.34
5.6.60.0060.00914.27
5.6.50.0030.01014.20
5.6.40.0000.00914.13
5.6.30.0100.00714.34
5.6.20.0100.00014.04
5.6.10.0040.00913.98
5.6.00.0070.01014.13
5.5.380.0000.00914.23
5.5.370.0030.01314.51
5.5.360.0000.01114.29
5.5.350.0160.03617.41
5.5.340.0070.04316.09
5.5.330.0050.02417.22
5.5.320.0150.02517.20
5.5.310.0130.04517.32
5.5.300.0070.04216.11
5.5.290.0070.02215.90
5.5.280.0080.02817.54
5.5.270.0030.02617.62
5.5.260.0040.04817.42
5.5.250.0030.04917.23
5.5.240.0160.03817.23
5.5.230.0060.00614.27
5.5.220.0100.00313.83
5.5.210.0070.00714.42
5.5.200.0030.01014.08
5.5.190.0100.00314.19
5.5.180.0030.01014.00
5.5.170.0030.00914.07
5.5.160.0030.01314.09
5.5.150.0040.00813.95
5.5.140.0050.00513.75
5.5.130.0040.00714.38
5.5.120.0100.00314.09
5.5.110.0070.00714.36
5.5.100.0090.00613.95
5.5.90.0030.01214.16
5.5.80.0040.00714.22
5.5.70.0060.01013.97
5.5.60.0100.00714.31
5.5.50.0160.00014.11
5.5.40.0030.01414.30
5.5.30.0040.01114.17
5.5.20.0030.01014.11
5.5.10.0040.00413.99
5.5.00.0060.00613.91
5.4.450.0400.04015.34
5.4.440.0370.03215.40
5.4.430.0450.03015.32
5.4.420.0390.02815.25
5.4.410.0520.04215.23
5.4.400.0450.03615.15
5.4.390.0420.03215.15
5.4.380.0160.02814.71
5.4.370.0150.03414.73
5.4.360.0150.03314.94
5.4.350.0200.03114.89
5.4.340.0180.03014.85
5.4.330.0000.00810.66
5.4.320.0050.02511.70
5.4.310.0050.03011.61
5.4.300.0040.02111.74
5.4.290.0080.02911.73
5.4.280.0080.02411.72
5.4.270.0030.02611.58
5.4.260.0070.02211.54
5.4.250.0060.02511.51
5.4.240.0060.02011.81
5.4.230.0040.02811.70
5.4.220.0100.01911.67
5.4.210.0080.02011.77
5.4.200.0070.02311.52
5.4.190.0050.02411.51
5.4.180.0070.02611.78
5.4.170.0040.02711.66
5.4.160.0060.02211.70
5.4.150.0060.02811.68
5.4.140.0070.02211.55
5.4.130.0070.02211.54
5.4.120.0090.01911.53
5.4.110.0060.02111.51
5.4.100.0050.02211.63
5.4.90.0060.02411.32
5.4.80.0060.02711.52
5.4.70.0080.02611.48
5.4.60.0060.02011.36
5.4.50.0050.02111.35
5.4.40.0070.01911.54
5.4.30.0060.02111.40
5.4.20.0080.02411.41
5.4.10.0070.02711.54
5.4.00.0040.03711.29
5.3.290.0100.02111.74
5.3.280.0030.02611.63
5.3.270.0090.02111.56
5.3.260.0040.02411.68
5.3.250.0050.02111.67
5.3.240.0070.02411.56
5.3.230.0040.02611.56
5.3.220.0040.02111.54
5.3.210.0070.02311.54
5.3.200.0050.02011.57
5.3.190.0020.02411.54
5.3.180.0060.02211.66
5.3.170.0040.02511.65
5.3.160.0030.02311.64
5.3.150.0080.01911.66
5.3.140.0040.02411.61
5.3.130.0060.02211.60
5.3.120.0080.02511.61
5.3.110.0050.03311.53
5.3.100.0080.03511.26
5.3.90.0060.02411.38
5.3.80.0040.02511.26
5.3.70.0070.02411.25
5.3.60.0030.02511.30
5.3.50.0070.02011.27
5.3.40.0040.02411.21
5.3.30.0070.02211.27
5.3.20.0060.02211.13
5.3.10.0070.02211.06
5.3.00.0060.02911.11
5.2.170.0080.0429.22
5.2.160.0120.0389.22
5.2.150.0050.0369.22
5.2.140.0080.0439.22
5.2.130.0120.0429.18
5.2.120.0060.0429.18
5.2.110.0070.0439.19
5.2.100.0050.0419.17
5.2.90.0080.0339.18
5.2.80.0020.0369.17
5.2.70.0050.0329.17
5.2.60.0090.0279.12
5.2.50.0050.0489.09
5.2.40.0050.0419.07
5.2.30.0070.0429.05
5.2.20.0120.0349.03
5.2.10.0050.0408.94
5.2.00.0050.0438.80
5.1.60.0070.0288.09
5.1.50.0080.0238.08
5.1.40.0040.0258.07
5.1.30.0060.0258.41
5.1.20.0040.0268.43
5.1.10.0030.0278.16
5.1.00.0030.0288.16
5.0.50.0060.0226.63
5.0.40.0030.0246.50
5.0.30.0040.0446.31
5.0.20.0030.0316.27
5.0.10.0030.0306.25
5.0.00.0020.0426.24
4.4.90.0050.0224.78
4.4.80.0090.0284.75
4.4.70.0020.0244.76
4.4.60.0100.0274.76
4.4.50.0070.0264.77
4.4.40.0040.0344.71
4.4.30.0030.0184.75
4.4.20.0040.0164.84
4.4.10.0040.0144.85
4.4.00.0030.0264.76
4.3.110.0120.0354.67
4.3.100.0060.0184.67
4.3.90.0060.0194.63
4.3.80.0040.0274.59
4.3.70.0080.0284.63
4.3.60.0040.0204.62
4.3.50.0040.0184.63
4.3.40.0040.0314.54
4.3.30.0010.0193.30
4.3.20.0040.0183.28
4.3.10.0040.0213.23
4.3.00.0270.02710.54

preferences:
55.77 ms | 400 KiB | 5 Q