3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public function __construct() { echo 'Constructing MyClass'."\n"; } } $className = 'MyClass'; $objFromString = new $className(); var_dump($objFromString);

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.130.0040.00916.73
8.3.120.0070.00718.98
8.3.110.0030.00720.94
8.3.100.0130.00724.06
8.3.90.0000.00826.77
8.3.80.0060.00316.25
8.3.70.0150.00316.58
8.3.60.0090.00918.56
8.3.50.0110.00522.04
8.3.40.0130.00718.64
8.3.30.0120.00319.09
8.3.20.0040.00420.31
8.3.10.0040.00423.61
8.3.00.0040.00419.25
8.2.250.0040.00416.48
8.2.240.0050.00516.94
8.2.230.0040.00422.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0030.00618.29
8.2.190.0070.01316.63
8.2.180.0140.00725.92
8.2.170.0070.00718.96
8.2.160.0100.00322.96
8.2.150.0050.00325.66
8.2.140.0050.00324.66
8.2.130.0030.01026.16
8.2.120.0040.00419.82
8.2.110.0060.00322.07
8.2.100.0040.00817.91
8.2.90.0000.00819.11
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0090.00317.93
8.2.50.0050.00319.38
8.2.40.0000.00919.95
8.2.30.0030.00619.84
8.2.20.0040.00417.64
8.2.10.0000.00718.13
8.2.00.0000.01017.74
8.1.300.0060.00320.27
8.1.290.0090.00018.88
8.1.280.0090.00625.92
8.1.270.0060.00324.66
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0100.00723.90
8.1.230.0000.01224.05
8.1.220.0030.00717.75
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0040.00418.46
8.1.160.0040.00421.86
8.1.150.0070.00018.63
8.1.140.0040.00417.38
8.1.130.0000.00717.80
8.1.120.0000.00717.49
8.1.110.0000.00717.40
8.1.100.0030.00617.33
8.1.90.0070.00017.29
8.1.80.0050.00317.26
8.1.70.0030.00317.35
8.1.60.0030.00617.54
8.1.50.0040.00417.50
8.1.40.0040.00417.55
8.1.30.0000.00917.54
8.1.20.0000.00717.61
8.1.10.0040.00417.46
8.1.00.0040.00417.38
8.0.300.0070.00018.77
8.0.290.0000.00816.63
8.0.280.0030.00318.45
8.0.270.0030.00316.81
8.0.260.0000.00617.16
8.0.250.0000.00716.85
8.0.240.0040.00416.76
8.0.230.0070.00016.91
8.0.220.0030.00316.86
8.0.210.0070.00016.72
8.0.200.0000.00716.86
8.0.190.0040.00416.89
8.0.180.0040.00416.86
8.0.170.0030.00616.75
8.0.160.0050.00316.91
8.0.150.0000.00716.84
8.0.140.0070.00016.82
8.0.130.0060.00013.28
8.0.120.0000.00816.70
8.0.110.0030.00316.73
8.0.100.0000.00716.86
8.0.90.0000.00716.85
8.0.80.0150.00616.82
8.0.70.0080.00016.87
8.0.60.0040.00416.70
8.0.50.0030.00516.69
8.0.30.0090.01217.04
8.0.20.0110.00717.40
8.0.10.0090.00916.92
8.0.00.0110.00716.87
7.4.330.0000.00515.03
7.4.320.0000.00616.36
7.4.300.0000.00716.49
7.4.290.0070.00016.40
7.4.280.0030.00616.60
7.4.270.0080.00016.64
7.4.260.0030.00316.48
7.4.250.0000.00716.42
7.4.240.0000.00716.57
7.4.230.0030.00316.46
7.4.220.0030.01416.64
7.4.210.0090.00716.55
7.4.200.0030.00316.55
7.4.190.0070.00016.76
7.4.160.0150.00616.37
7.4.150.0130.00617.40
7.4.140.0070.01017.40
7.4.130.0130.00516.52
7.4.120.0130.00416.51
7.4.110.0090.00916.64
7.4.100.0140.00716.31
7.4.90.0070.01016.61
7.4.80.0080.00817.90
7.4.70.0130.00716.55
7.4.60.0080.00816.34
7.4.50.0070.00516.26
7.4.40.0090.00919.68
7.4.30.0090.00816.39
7.4.20.0130.00416.64
7.4.10.0060.01216.46
7.4.00.0080.00915.67
7.3.330.0030.00313.30
7.3.320.0030.00313.16
7.3.310.0000.00816.20
7.3.300.0040.00416.35
7.3.290.0100.00316.23
7.3.280.0100.01016.28
7.3.270.0150.00917.40
7.3.260.0090.01216.45
7.3.250.0120.00616.34
7.3.240.0080.00816.53
7.3.230.0120.00816.53
7.3.220.0130.00416.36
7.3.210.0080.00816.29
7.3.200.0150.00417.77
7.3.190.0120.00816.25
7.3.180.0070.01016.47
7.3.170.0110.00616.33
7.3.160.0120.00416.44
7.3.150.0080.00816.53
7.3.140.0130.00416.51
7.3.130.0070.01016.40
7.3.120.0050.01215.49
7.3.110.0080.01015.66
7.3.100.0040.01115.49
7.3.90.0090.00815.59
7.3.80.0110.00515.52
7.3.70.0070.00815.51
7.3.60.0130.00715.56
7.3.50.0080.00815.57
7.3.40.0080.00815.54
7.3.30.0090.00915.49
7.3.20.0100.00715.46
7.3.10.0070.01115.61
7.3.00.0050.01015.83
7.2.340.0120.00616.64
7.2.330.0030.01516.54
7.2.320.0130.00816.59
7.2.310.0070.01316.61
7.2.300.0110.00716.53
7.2.290.0150.00716.65
7.2.280.0150.01016.63
7.2.270.0180.00916.44
7.2.260.0210.00616.32
7.2.250.0170.00916.28
7.2.240.0160.00815.54
7.2.230.0130.00715.57
7.2.220.0120.00915.75
7.2.210.0120.00815.78
7.2.200.0180.00515.65
7.2.190.0050.01215.68
7.2.180.0060.01315.46
7.2.170.0160.00715.51
7.2.160.0180.00515.82
7.2.150.0130.00815.66
7.2.140.0160.00615.86
7.2.130.0150.00416.01
7.2.120.0090.00916.03
7.2.110.0120.00616.02
7.2.100.0120.00716.15
7.2.90.0100.01015.88
7.2.80.0140.00616.04
7.2.70.0130.00716.06
7.2.60.0110.00916.21
7.2.50.0150.00615.97
7.2.40.0170.00516.19
7.2.30.0100.01016.25
7.2.20.0140.00715.93
7.2.10.0150.00816.00
7.2.00.0110.01016.05
7.1.330.0170.00714.78
7.1.320.0140.00814.63
7.1.310.0150.00614.65
7.1.300.0080.01214.65
7.1.290.0210.00614.77
7.1.280.0210.00514.81
7.1.270.0130.01014.67
7.1.260.0100.00914.64
7.1.250.0140.00614.98
7.1.240.0150.00415.11
7.1.230.0140.00614.87
7.1.220.0130.00514.93
7.1.210.0100.01014.91
7.1.200.0090.00815.16
7.1.190.0100.00714.86
7.1.180.0110.00815.06
7.1.170.0100.00915.02
7.1.160.0120.00614.92
7.1.150.0100.00814.97
7.1.140.0090.00914.94
7.1.130.0080.00914.97
7.1.120.0170.00815.32
7.1.110.0210.00615.26
7.1.100.0190.01015.26
7.1.90.0160.00715.21
7.1.80.0130.00915.76
7.1.70.0160.00615.78
7.1.60.0220.01021.73
7.1.50.0200.00821.54
7.1.40.0150.01121.31
7.1.30.0200.00821.40
7.1.20.0280.01021.45
7.1.10.0130.01115.46
7.1.00.0160.01015.58
7.0.330.0130.00514.68
7.0.320.0120.00614.73
7.0.310.0140.00814.49
7.0.300.0120.00514.60
7.0.290.0080.01114.59
7.0.280.0110.00814.46
7.0.270.0150.00414.57
7.0.260.0130.00614.68
7.0.250.0170.00714.93
7.0.240.0170.00914.75
7.0.230.0150.00914.85
7.0.220.0180.00714.81
7.0.210.0200.00814.57
7.0.200.0180.00415.35
7.0.190.0120.01115.38
7.0.180.0110.00815.10
7.0.170.0130.01015.16
7.0.160.0200.00815.04
7.0.150.0190.00915.16
7.0.140.0120.00915.20
7.0.130.0170.00915.18
7.0.120.0140.00915.19
7.0.110.0150.00815.09
7.0.100.0170.00915.04
7.0.90.0130.00715.25
7.0.80.0220.00815.15
7.0.70.0110.01015.20
7.0.60.0120.00814.95
7.0.50.0120.00915.12
7.0.40.0070.01114.67
7.0.30.0100.00914.68
7.0.20.0120.00814.70
7.0.10.0090.01014.74
7.0.00.0110.00914.70
5.6.400.0150.00615.04
5.6.390.0160.00815.04
5.6.380.0090.01014.67
5.6.370.0080.01014.54
5.6.360.0120.00514.65
5.6.350.0080.01214.53
5.6.340.0110.00714.58
5.6.330.0110.00714.75
5.6.320.0080.01114.54
5.6.310.0110.00814.50
5.6.300.0140.03217.70
5.6.290.0110.03817.72
5.6.280.0110.03717.77
5.6.270.0140.03117.67
5.6.260.0130.03317.70
5.6.250.0110.03617.77
5.6.240.0070.04117.67
5.6.230.0120.03317.66
5.6.220.0120.03717.75
5.6.210.0100.03617.67
5.6.200.0170.03417.70
5.6.190.0140.03617.81
5.6.180.0120.03717.77
5.6.170.0080.03917.79
5.6.160.0080.03517.67
5.6.150.0110.03417.75
5.6.140.0120.03617.72
5.6.130.0110.03517.72
5.6.120.0110.03217.70
5.6.110.0120.03417.78
5.6.100.0110.03017.65
5.6.90.0110.03317.64
5.6.80.0090.03317.38
5.6.70.0160.03217.39
5.6.60.0100.03517.36
5.6.50.0110.03017.35
5.6.40.0100.03117.40
5.6.30.0110.03517.41
5.6.20.0110.03417.42
5.6.10.0120.03017.33
5.6.00.0090.03017.38
5.5.380.0130.03415.57
5.5.370.0090.03415.57
5.5.360.0100.03615.52
5.5.350.0110.03515.54
5.5.340.0110.03415.79
5.5.330.0110.03115.85
5.5.320.0120.03915.74
5.5.310.0090.03815.84
5.5.300.0130.03315.78
5.5.290.0100.03515.73
5.5.280.0080.03615.86
5.5.270.0110.03415.84
5.5.260.0100.02915.80
5.5.250.0080.03715.74
5.5.240.0090.03615.56
5.5.230.0100.03415.47
5.5.220.0090.03215.49
5.5.210.0120.03115.37
5.5.200.0100.03415.46
5.5.190.0100.03215.50
5.5.180.0140.02715.49
5.5.170.0080.01013.70
5.5.160.0110.02715.45
5.5.150.0100.03715.43
5.5.140.0120.03615.47
5.5.130.0100.03215.50
5.5.120.0080.03815.53
5.5.110.0110.03115.41
5.5.100.0100.02815.42
5.5.90.0100.02715.34
5.5.80.0130.02915.45
5.5.70.0110.02815.47
5.5.60.0090.03215.50
5.5.50.0110.02815.33
5.5.40.0080.03215.51
5.5.30.0110.03115.44
5.5.20.0090.03215.45
5.5.10.0090.03815.37
5.5.00.0110.03115.37
5.4.450.0130.03215.62
5.4.440.0090.03315.56
5.4.430.0100.03115.63
5.4.420.0090.03115.60
5.4.410.0110.03015.61
5.4.400.0120.03615.44
5.4.390.0080.03415.47
5.4.380.0090.02815.43
5.4.370.0080.03015.38
5.4.360.0090.03515.49
5.4.350.0110.03615.52
5.4.340.0130.02915.44
5.4.330.0090.00811.80
5.4.320.0080.03515.39
5.4.310.0080.03615.38
5.4.300.0100.02815.37
5.4.290.0090.03315.39
5.4.280.0100.02715.41
5.4.270.0100.03215.44
5.4.260.0110.02515.41
5.4.250.0080.03015.42
5.4.240.0070.03215.33
5.4.230.0100.02715.48
5.4.220.0100.02915.40
5.4.210.0110.03115.40
5.4.200.0080.03115.41
5.4.190.0080.03015.39
5.4.180.0090.02915.43
5.4.170.0090.03115.38
5.4.160.0070.02915.38
5.4.150.0100.03215.47
5.4.140.0100.03514.23
5.4.130.0080.03014.23
5.4.120.0070.02914.09
5.4.110.0080.03014.14
5.4.100.0090.02714.21
5.4.90.0070.02814.17
5.4.80.0090.02914.13
5.4.70.0080.03414.22
5.4.60.0090.03214.22
5.4.50.0110.02414.18
5.4.40.0090.02814.28
5.4.30.0110.02914.17
5.4.20.0100.02814.23
5.4.10.0100.02914.15
5.4.00.0080.02713.90
5.3.290.0080.03013.46
5.3.280.0090.02813.38
5.3.270.0080.03113.40
5.3.260.0090.02813.42
5.3.250.0080.03413.50
5.3.240.0070.02813.38
5.3.230.0090.02913.41
5.3.220.0050.03313.42
5.3.210.0080.02913.38
5.3.200.0100.02913.40
5.3.190.0060.03213.41
5.3.180.0110.02813.41
5.3.170.0100.03513.42
5.3.160.0070.03413.35
5.3.150.0090.02813.41
5.3.140.0120.02913.34
5.3.130.0090.03013.42
5.3.120.0060.03313.42
5.3.110.0060.03313.44
5.3.100.0060.03413.22
5.3.90.0120.02813.23
5.3.80.0070.03013.19
5.3.70.0090.03113.18
5.3.60.0070.02913.23
5.3.50.0090.02813.21
5.3.40.0080.03113.21
5.3.30.0120.02813.22
5.3.20.0090.02713.17
5.3.10.0080.02813.06
5.3.00.0100.02713.03
5.2.170.0160.00411.96
5.2.160.0100.01012.01
5.2.150.0140.00412.10
5.2.140.0110.00812.04
5.2.130.0160.00312.06
5.2.120.0120.00812.14
5.2.110.0130.00812.06
5.2.100.0100.01011.97
5.2.90.0120.00611.90
5.2.80.0190.00011.78
5.2.70.0090.01311.93
5.2.60.0170.00311.70
5.2.50.0160.00711.78
5.2.40.0110.01111.81
5.2.30.0090.01511.80
5.2.20.0110.00811.83
5.2.10.0130.00511.77
5.2.00.0140.00511.75
5.1.60.0060.00311.15
5.1.50.0110.00611.64
5.1.40.0080.00811.64
5.1.30.0100.00711.64
5.1.20.0110.00711.64
5.1.10.0050.01111.64
5.1.00.0110.00511.64
5.0.50.0110.00311.64
5.0.40.0090.00611.64
5.0.30.0110.00411.64
5.0.20.0050.01011.64
5.0.10.0140.00011.64
5.0.00.0080.00511.64
4.4.90.0000.01011.64
4.4.80.0070.00311.64
4.4.70.0060.00311.64
4.4.60.0100.00011.64
4.4.50.0080.00411.64
4.4.40.0050.00511.64
4.4.30.0050.00511.64
4.4.20.0070.00311.64
4.4.10.0070.00211.64
4.4.00.0060.00311.64
4.3.110.0070.00211.64
4.3.100.0050.00511.64
4.3.90.0050.00511.64
4.3.80.0090.00211.64
4.3.70.0130.00011.64
4.3.60.0090.00311.64
4.3.50.0120.00011.64
4.3.40.0070.00311.64
4.3.30.0080.00011.64
4.3.20.0080.00011.64
4.3.10.0040.00411.64
4.3.00.0040.00411.64

preferences:
30.49 ms | 403 KiB | 5 Q